コード例 #1
0
 public MethodDeclaration addCompositeEntity(
     String type, String componentType, boolean isOrdered, boolean isByReference) {
   addSwitchCase(getMethodSwitch("wEntity"), type, BuilderConstants.buildName(type));
   addSwitchCase(getMethodSwitch("wEntity_"), type, BuilderConstants.startBuildName(type));
   addSwitchCase(
       getCompositeMethodSwitch("wEntity_"),
       type,
       BuilderConstants.startBuildName(type),
       "initialCapacity");
   addSwitchCase(getMethodSwitch("_wEntity"), type, BuilderConstants.endBuildName(type));
   return null;
 }
コード例 #2
0
 public MethodDeclaration addSimpleEntity(String type) {
   addSwitchCase(getMethodSwitch("wEntity"), type, BuilderConstants.buildName(type));
   addSwitchCase(getMethodSwitch("wEntity_"), type, BuilderConstants.startBuildName(type));
   addSwitchCase(getMethodSwitch("_wEntity"), type, BuilderConstants.endBuildName(type));
   return null;
 }