Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 public FieldDeclaration(int modifiers, Type type, List<VariableDeclarator> variables) {
   this.modifiers = modifiers;
   setType(type);
   setVariables(variables);
 }