@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); }
public FieldDeclaration( JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, Type type, List<VariableDeclarator> variables) { super(annotations, javaDoc); this.modifiers = modifiers; setType(type); setVariables(variables); }
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); }
public FieldDeclaration(int modifiers, Type type, List<VariableDeclarator> variables) { this.modifiers = modifiers; setType(type); setVariables(variables); }