<suppress files="" checks="TrailingComment" />
<!-- Modifier -->
- <suppress files="" checks="InterfaceMemberImpliedModifier" />
+ <suppress files="" checks="RedundantModifier" />
<!-- Whitespace -->
<suppress files="" checks="SingleSpaceSeparator" />
<exclude name="OnlyOneReturn" />
<exclude name="ShortVariable" />
<exclude name="UnnecessaryLocalBeforeReturn" />
+ <exclude name="UnnecessaryModifier" />
<exclude name="UnnecessaryReturn" />
</rule>
<rule ref="category/java/codestyle.xml/ClassNamingConventions" >
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void loopStart(ParseStage stage, int loops) throws MmdFormatException;
+ public abstract void loopStart(ParseStage stage, int loops)
+ throws MmdFormatException;
/**
* ループ構造の1イテレーション終了の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void loopNext(ParseStage stage) throws MmdFormatException;
+ public abstract void loopNext(ParseStage stage)
+ throws MmdFormatException;
/**
* ループ構造終了の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void loopEnd(ParseStage stage) throws MmdFormatException;
+ public abstract void loopEnd(ParseStage stage)
+ throws MmdFormatException;
}
* コンストラクタ。
* @param code 符号化int値
*/
- private BoneType(int code){
+ BoneType(int code){
this((byte)code);
return;
}
* コンストラクタ。
* @param code 符号化byte値
*/
- private BoneType(byte code){
+ BoneType(byte code){
this.encoded = code;
return;
}
* コンストラクタ。
* @param code 符号化int値
*/
- private MorphType(int code){
+ MorphType(int code){
this((byte)code);
return;
}
* コンストラクタ。
* @param code 符号化byte値
*/
- private MorphType(byte code){
+ MorphType(byte code){
this.encoded = code;
return;
}
* コンストラクタ。
* @param code 符号化int値
*/
- private RigidBehaviorType(int code){
+ RigidBehaviorType(int code){
this((byte)code);
return;
}
* コンストラクタ。
* @param code 符号化byte値
*/
- private RigidBehaviorType(byte code){
+ RigidBehaviorType(byte code){
this.encoded = code;
return;
}
* コンストラクタ。
* @param code 符号化int値
*/
- private RigidShapeType(int code){
+ RigidShapeType(int code){
this((byte)code);
return;
}
* コンストラクタ。
* @param code 符号化byte値
*/
- private RigidShapeType(byte code){
+ RigidShapeType(byte code){
this.encoded = code;
return;
}
public interface PmdBoneHandler extends LoopHandler {
/** ボーン定義抽出ループ。 */
- ParseStage BONE_LIST = new ParseStage();
+ public static final ParseStage BONE_LIST = new ParseStage();
/** IKリスト抽出ループ。 */
- ParseStage IK_LIST = new ParseStage();
+ public static final ParseStage IK_LIST = new ParseStage();
/** IKチェーンリスト抽出ループ。 */
- ParseStage IKCHAIN_LIST = new ParseStage();
+ public static final ParseStage IKCHAIN_LIST = new ParseStage();
/** ボーングループ名抽出ループ。 */
- ParseStage BONEGROUP_LIST = new ParseStage();
+ public static final ParseStage BONEGROUP_LIST = new ParseStage();
/** ボーングループ内訳抽出ループ。 */
- ParseStage GROUPEDBONE_LIST = new ParseStage();
+ public static final ParseStage GROUPEDBONE_LIST = new ParseStage();
/**
* ボーン定義情報の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdBoneInfo(String boneName, byte boneKind)
+ public abstract void pmdBoneInfo(String boneName, byte boneKind)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdBoneLink(int parentId, int tailId, int ikId)
+ public abstract void pmdBoneLink(int parentId, int tailId, int ikId)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdBonePosition(float xPos, float yPos, float zPos)
+ public abstract void pmdBonePosition(float xPos, float yPos, float zPos)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdIKInfo(int boneId, int targetId, int depth, float weight)
+ public abstract void pmdIKInfo(
+ int boneId, int targetId,
+ int depth, float weight)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdIKChainInfo(int childId)
+ public abstract void pmdIKChainInfo(int childId)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdBoneGroupInfo(String groupName) throws MmdFormatException;
+ public abstract void pmdBoneGroupInfo(String groupName)
+ throws MmdFormatException;
/**
* ボーングループ内訳の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdGroupedBoneInfo(int boneId, int groupId)
+ public abstract void pmdGroupedBoneInfo(int boneId, int groupId)
throws MmdFormatException;
}
public interface PmdEngHandler extends LoopHandler {
/** ボーン英語名抽出ループ。 */
- ParseStage ENGBONE_LIST = new ParseStage();
+ public static final ParseStage ENGBONE_LIST = new ParseStage();
/** モーフ英語名抽出ループ。 */
- ParseStage ENGMORPH_LIST = new ParseStage();
+ public static final ParseStage ENGMORPH_LIST = new ParseStage();
/** ボーングループ英語名抽出ループ。 */
- ParseStage ENGBONEGROUP_LIST = new ParseStage();
+ public static final ParseStage ENGBONEGROUP_LIST = new ParseStage();
/**
* PMD英語情報の有無の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdEngEnabled(boolean hasEnglishInfo) throws MmdFormatException;
+ public abstract void pmdEngEnabled(boolean hasEnglishInfo)
+ throws MmdFormatException;
/**
* PMD英語基本情報の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdEngModelInfo(String modelName, String description)
+ public abstract void pmdEngModelInfo(String modelName, String description)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdEngBoneInfo(String boneName) throws MmdFormatException;
+ public abstract void pmdEngBoneInfo(String boneName)
+ throws MmdFormatException;
/**
* 英語モーフ名の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdEngMorphInfo(String morphName) throws MmdFormatException;
+ public abstract void pmdEngMorphInfo(String morphName)
+ throws MmdFormatException;
/**
* 英語ボーングループ名の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdEngBoneGroupInfo(String groupName) throws MmdFormatException;
+ public abstract void pmdEngBoneGroupInfo(String groupName)
+ throws MmdFormatException;
}
public interface PmdJointHandler extends LoopHandler {
/** ジョイント情報抽出ループ。 */
- ParseStage JOINT_LIST = new ParseStage();
+ public static final ParseStage JOINT_LIST = new ParseStage();
/**
* ジョイント名の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdJointName(String jointName)
+ public abstract void pmdJointName(String jointName)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdJointLink(int rigidIdA, int rigidIdB)
+ public abstract void pmdJointLink(int rigidIdA, int rigidIdB)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdJointPosition(float posX, float posY, float posZ)
+ public abstract void pmdJointPosition(float posX, float posY, float posZ)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdJointRotation(float radX, float radY, float radZ)
+ public abstract void pmdJointRotation(float radX, float radY, float radZ)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdPositionLimit(float posXlim1, float posXlim2,
+ public abstract void pmdPositionLimit(float posXlim1, float posXlim2,
float posYlim1, float posYlim2,
float posZlim1, float posZlim2 )
throws MmdFormatException;
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdRotationLimit(float radXlim1, float radXlim2,
+ public abstract void pmdRotationLimit(float radXlim1, float radXlim2,
float radYlim1, float radYlim2,
float radZlim1, float radZlim2 )
throws MmdFormatException;
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdElasticPosition(float elasticPosX,
+ public abstract void pmdElasticPosition(float elasticPosX,
float elasticPosY,
float elasticPosZ )
throws MmdFormatException;
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示。
*/
- void pmdElasticRotation(float elasticDegX,
+ public abstract void pmdElasticRotation(float elasticDegX,
float elasticDegY,
float elasticDegZ )
throws MmdFormatException;
public interface PmdMorphHandler extends LoopHandler {
/** モーフ抽出ループ。 */
- ParseStage MORPH_LIST = new ParseStage();
+ public static final ParseStage MORPH_LIST = new ParseStage();
/** モーフ頂点抽出ループ。 */
- ParseStage MORPHVERTEX_LIST = new ParseStage();
+ public static final ParseStage MORPHVERTEX_LIST = new ParseStage();
/** モーフ出現順抽出ループ。 */
- ParseStage MORPHORDER_LIST = new ParseStage();
+ public static final ParseStage MORPHORDER_LIST = new ParseStage();
/**
* モーフ情報の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdMorphInfo(String morphName, byte morphType)
+ public abstract void pmdMorphInfo(String morphName, byte morphType)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdMorphVertexInfo(int serialId,
+ public abstract void pmdMorphVertexInfo(int serialId,
float xPos, float yPos, float zPos)
throws MmdFormatException;
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdMorphOrderInfo(int morphId) throws MmdFormatException;
+ public abstract void pmdMorphOrderInfo(int morphId)
+ throws MmdFormatException;
}
public interface PmdShapeHandler extends LoopHandler {
/** 頂点抽出ループ。 */
- ParseStage VERTEX_LIST = new ParseStage();
+ public static final ParseStage VERTEX_LIST = new ParseStage();
/** 面抽出ループ。 */
- ParseStage SURFACE_LIST = new ParseStage();
+ public static final ParseStage SURFACE_LIST = new ParseStage();
/**
* 頂点の座標の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdVertexPosition(float xPos, float yPos, float zPos)
+ public abstract void pmdVertexPosition(float xPos, float yPos, float zPos)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdVertexNormal(float xVec, float yVec, float zVec)
+ public abstract void pmdVertexNormal(float xVec, float yVec, float zVec)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdVertexUV(float uVal, float vVal )
+ public abstract void pmdVertexUV(float uVal, float vVal )
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdVertexWeight(int boneId1, int boneId2, int weightForB1)
+ public abstract void pmdVertexWeight(
+ int boneId1, int boneId2, int weightForB1)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdVertexEdge(boolean hideEdge)
+ public abstract void pmdVertexEdge(boolean hideEdge)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdSurfaceTriangle(int vertexId1, int vertexId2, int vertexId3)
+ public abstract void pmdSurfaceTriangle(
+ int vertexId1, int vertexId2, int vertexId3)
throws MmdFormatException;
}
public interface PmdToonHandler extends LoopHandler {
/** トゥーンテクスチャファイル名抽出ループ。 */
- ParseStage TOON_LIST = new ParseStage();
+ public static final ParseStage TOON_LIST = new ParseStage();
/**
* 独自トゥーンテクスチャファイル名の通知を受け取る。
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void pmdToonFileInfo(String toonName) throws MmdFormatException;
+ public abstract void pmdToonFileInfo(String toonName)
+ throws MmdFormatException;
}
PmdJointHandler {
/** 何もしない統合ハンドラ。 */
- PmdUnifiedHandler EMPTY =
+ public static final PmdUnifiedHandler EMPTY =
(PmdUnifiedHandler)
( EmptyProxyFactory.buildEmptyProxy(PmdUnifiedHandler.class) );
public interface FrameNumbered {
/** 昇順での比較子。 */
- Comparator<FrameNumbered> COMPARATOR = new FrameComparator();
+ public static final Comparator<FrameNumbered> COMPARATOR =
+ new FrameComparator();
/**
* フレーム番号を設定する。
* @param num フレーム番号
*/
- void setFrameNumber(int num);
+ public abstract void setFrameNumber(int num);
/**
* フレーム番号を返す。
* @return フレーム番号
*/
- int getFrameNumber();
+ public abstract int getFrameNumber();
/**
* フレーム番号の昇順を定義づける。
*/
@SuppressWarnings("serial")
- class FrameComparator
+ public static class FrameComparator
implements Comparator<FrameNumbered> {
/**
public interface VmdBasicHandler extends LoopHandler {
/** ボーンモーション抽出ループ識別子。 */
- ParseStage BONEMOTION_LIST = new ParseStage();
+ public static final ParseStage BONEMOTION_LIST = new ParseStage();
/** モーフ抽出ループ識別子。 */
- ParseStage MORPH_LIST = new ParseStage();
+ public static final ParseStage MORPH_LIST = new ParseStage();
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdParseStart()
+ public abstract void vmdParseStart()
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdParseEnd(boolean hasMoreData)
+ public abstract void vmdParseEnd(boolean hasMoreData)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdHeaderInfo(byte[] header)
+ public abstract void vmdHeaderInfo(byte[] header)
throws MmdFormatException;
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdModelName(String modelName)
+ public abstract void vmdModelName(String modelName)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBoneMotion(String boneName, int keyFrameNo)
+ public abstract void vmdBoneMotion(String boneName, int keyFrameNo)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBonePosition(float xPos, float yPos, float zPos)
+ public abstract void vmdBonePosition(float xPos, float yPos, float zPos)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBoneRotationQt(float qx, float qy, float qz, float qw)
+ public abstract void vmdBoneRotationQt(
+ float qx, float qy, float qz, float qw)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBoneIntpltXpos(byte xP1x, byte xP1y, byte xP2x, byte xP2y)
+ public abstract void vmdBoneIntpltXpos(
+ byte xP1x, byte xP1y, byte xP2x, byte xP2y)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBoneIntpltYpos(byte yP1x, byte yP1y, byte yP2x, byte yP2y)
+ public abstract void vmdBoneIntpltYpos(
+ byte yP1x, byte yP1y, byte yP2x, byte yP2y)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBoneIntpltZpos(byte zP1x, byte zP1y, byte zP2x, byte zP2y)
+ public abstract void vmdBoneIntpltZpos(
+ byte zP1x, byte zP1y, byte zP2x, byte zP2y)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdBoneIntpltRot(byte rP1x, byte rP1y, byte rP2x, byte rP2y)
+ public abstract void vmdBoneIntpltRot(
+ byte rP1x, byte rP1y, byte rP2x, byte rP2y)
throws MmdFormatException;
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdMorphMotion(String morphName, int keyFrameNo, float flex)
+ public abstract void vmdMorphMotion(
+ String morphName, int keyFrameNo, float flex)
throws MmdFormatException;
}
public interface VmdBoolHandler extends LoopHandler {
/** モデル表示スイッチ抽出ループ識別子。 */
- ParseStage MODELSIGHT_LIST = new ParseStage();
+ public static final ParseStage MODELSIGHT_LIST = new ParseStage();
/** IK有効スイッチ抽出ループ識別子。 */
- ParseStage IKSW_LIST = new ParseStage();
+ public static final ParseStage IKSW_LIST = new ParseStage();
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdModelSight(boolean show, int keyFrameNo)
+ public abstract void vmdModelSight(boolean show, int keyFrameNo)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdIkSwitch(String boneName, boolean validIk, int keyFrameNo)
+ public abstract void vmdIkSwitch(
+ String boneName, boolean validIk, int keyFrameNo)
throws MmdFormatException;
}
public interface VmdLightingHandler extends LoopHandler {
/** 照明光源データ抽出ループ識別子。 */
- ParseStage LUMINOUS_LIST = new ParseStage();
+ public static final ParseStage LUMINOUS_LIST = new ParseStage();
/** セルフシャドウデータ抽出ループ識別子。 */
- ParseStage SHADOW_LIST = new ParseStage();
+ public static final ParseStage SHADOW_LIST = new ParseStage();
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdLuminousMotion(int keyFrameNo)
+ public abstract void vmdLuminousMotion(int keyFrameNo)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdLuminousColor(float rVal, float gVal, float bVal)
+ public abstract void vmdLuminousColor(float rVal, float gVal, float bVal)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdLuminousDirection(float xVec, float yVec, float zVec)
+ public abstract void vmdLuminousDirection(
+ float xVec, float yVec, float zVec)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdShadowMotion(int keyFrameNo)
+ public abstract void vmdShadowMotion(int keyFrameNo)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdShadowMode(byte shadowMode)
+ public abstract void vmdShadowMode(byte shadowMode)
throws MmdFormatException;
/**
* @throws MmdFormatException 不正フォーマットによる
* パース処理の中断をパーサに指示
*/
- void vmdShadowScopeRaw(float shadowScope)
+ public abstract void vmdShadowScopeRaw(float shadowScope)
throws MmdFormatException;
}
VmdBoolHandler {
/** 何もしない統合ハンドラ。 */
- VmdUnifiedHandler EMPTY =
+ public static final VmdUnifiedHandler EMPTY =
(VmdUnifiedHandler)
( EmptyProxyFactory.buildEmptyProxy(VmdUnifiedHandler.class) );