コード例 #1
0
 public OJField(OJClass declarer, OJModifier modif, OJClass type, String name) {
   Environment env = declarer.getEnvironment();
   ModifierList modlist = new ModifierList();
   TypeName tname = TypeName.forOJClass(type);
   modlist.add(modif.toModifier());
   FieldDeclaration d = new FieldDeclaration(modlist, tname, name, null);
   this.substance = new OJFieldSourceCode(env, declarer, d);
 }
コード例 #2
0
 public final void setModifiers(OJModifier mods) throws CannotAlterException {
   setModifiers(mods.toModifier());
 }