示例#1
0
 @Override
 public void merge(FieldDeclaration remote, MergeEngine configuration) {
   super.merge(remote, configuration);
   setType((Type) configuration.apply(getType(), remote.getType(), Type.class));
   List<VariableDeclarator> resultList = new LinkedList<VariableDeclarator>();
   configuration.apply(
       getVariables(), remote.getVariables(), resultList, VariableDeclarator.class);
   setVariables(resultList);
 }
示例#2
0
 public FieldDeclaration(
     JavadocComment javaDoc,
     int modifiers,
     List<AnnotationExpr> annotations,
     Type type,
     List<VariableDeclarator> variables) {
   super(annotations, javaDoc);
   this.modifiers = modifiers;
   setType(type);
   setVariables(variables);
 }
示例#3
0
 public FieldDeclaration(
     int beginLine,
     int beginColumn,
     int endLine,
     int endColumn,
     JavadocComment javaDoc,
     int modifiers,
     List<AnnotationExpr> annotations,
     Type type,
     List<VariableDeclarator> variables) {
   super(beginLine, beginColumn, endLine, endColumn, annotations, javaDoc);
   this.modifiers = modifiers;
   setType(type);
   setVariables(variables);
 }
示例#4
0
 public FieldDeclaration(int modifiers, Type type, List<VariableDeclarator> variables) {
   this.modifiers = modifiers;
   setType(type);
   setVariables(variables);
 }