Esempio n. 1
0
 public FieldDeclaration(int modifiers, Type type, VariableDeclarator variable) {
   this.modifiers = modifiers;
   setType(type);
   this.variables = new ArrayList<VariableDeclarator>();
   setAsParentNodeOf(variable);
   this.variables.add(variable);
 }
Esempio n. 2
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);
 }
Esempio n. 3
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);
 }
Esempio n. 4
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);
 }
Esempio n. 5
0
 public FieldDeclaration(int modifiers, Type type, List<VariableDeclarator> variables) {
   this.modifiers = modifiers;
   setType(type);
   setVariables(variables);
 }