public final class FieldDeclaration extends BodyDeclaration implements org.walkmod.merger.Mergeable<FieldDeclaration>, SymbolDefinition
| Constructor and Description |
|---|
FieldDeclaration() |
FieldDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> variables) |
FieldDeclaration(int modifiers,
Type type,
List<VariableDeclarator> variables) |
FieldDeclaration(int modifiers,
Type type,
VariableDeclarator variable) |
FieldDeclaration(JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> variables) |
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
boolean |
addBodyReference(SymbolReference bodyReference)
Adds a symbol reference to this definition.
|
boolean |
addUsage(SymbolReference usage)
Adds a usage reference to this definition and updates the definition in
that reference.
|
FieldDeclaration |
clone() |
List<SymbolReference> |
getBodyReferences()
Returns the external references contained inside the body of this
definition.
|
List<Node> |
getChildren() |
List<FieldSymbolData> |
getFieldsSymbolData() |
Comparator<?> |
getIdentityComparator() |
int |
getModifiers()
Return the modifiers of this member declaration.
|
int |
getScopeLevel()
Returns the scope level where this definition is specified.
|
String |
getSymbolName()
Gets the symbol name
|
Type |
getType() |
List<SymbolReference> |
getUsages()
Returns the references that represent usages to that definition.
|
List<VariableDeclarator> |
getVariables() |
void |
merge(FieldDeclaration remote,
org.walkmod.merger.MergeEngine configuration) |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setBodyReferences(List<SymbolReference> bodyReferences)
Sets the external references contained inside the body of this
definition.
|
void |
setFieldsSymbolData(List<FieldSymbolData> symbolData) |
void |
setModifiers(int modifiers) |
void |
setScopeLevel(int scopeLevel)
Sets the scope level where this definition is specified.
|
void |
setType(Type type) |
void |
setUsages(List<SymbolReference> usages)
Sets the references that represent usages to that definition.
|
void |
setVariables(List<VariableDeclarator> variables) |
getAnnotations, getJavaDoc, getMethodDefinitions, getTypeDefinitions, getVariableDefinitions, merge, setAnnotations, setJavaDoccheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencesfinalize, getClass, notify, notifyAll, wait, wait, waitgetMethodDefinitions, getTypeDefinitions, getVariableDefinitionspublic FieldDeclaration()
public FieldDeclaration(int modifiers,
Type type,
VariableDeclarator variable)
public FieldDeclaration(int modifiers,
Type type,
List<VariableDeclarator> variables)
public FieldDeclaration(JavadocComment javaDoc, int modifiers, List<AnnotationExpr> annotations, Type type, List<VariableDeclarator> variables)
public FieldDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
JavadocComment javaDoc,
int modifiers,
List<AnnotationExpr> annotations,
Type type,
List<VariableDeclarator> variables)
public boolean removeChild(Node child)
removeChild in class BodyDeclarationpublic List<Node> getChildren()
getChildren in class BodyDeclarationpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic int getModifiers()
ModifierSetpublic Type getType()
public List<VariableDeclarator> getVariables()
public void setModifiers(int modifiers)
public void setType(Type type)
public void setVariables(List<VariableDeclarator> variables)
public Comparator<?> getIdentityComparator()
getIdentityComparator in interface org.walkmod.merger.IdentificableNodepublic void merge(FieldDeclaration remote, org.walkmod.merger.MergeEngine configuration)
merge in interface org.walkmod.merger.Mergeable<FieldDeclaration>public List<FieldSymbolData> getFieldsSymbolData()
public void setFieldsSymbolData(List<FieldSymbolData> symbolData)
public List<SymbolReference> getUsages()
SymbolDefinitiongetUsages in interface SymbolDefinitionpublic void setUsages(List<SymbolReference> usages)
SymbolDefinitionsetUsages in interface SymbolDefinitionusages - references that represent usages to that definition.public List<SymbolReference> getBodyReferences()
SymbolDefinitiongetBodyReferences in interface SymbolDefinitionpublic void setBodyReferences(List<SymbolReference> bodyReferences)
SymbolDefinitionsetBodyReferences in interface SymbolDefinitionbodyReferences - external references contained inside the body of this
definition.public int getScopeLevel()
SymbolDefinitiongetScopeLevel in interface SymbolDefinitionpublic void setScopeLevel(int scopeLevel)
SymbolDefinitionsetScopeLevel in interface SymbolDefinitionscopeLevel - the scope level where this definition is specified.public boolean addBodyReference(SymbolReference bodyReference)
SymbolDefinitionaddBodyReference in interface SymbolDefinitionbodyReference - the reference to add.public boolean addUsage(SymbolReference usage)
SymbolDefinitionaddUsage in interface SymbolDefinitionusage - reference to this definition.public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class BodyDeclarationpublic FieldDeclaration clone() throws CloneNotSupportedException
clone in class NodeCloneNotSupportedExceptionpublic String getSymbolName()
SymbolDefinitiongetSymbolName in interface SymbolDefinitionCopyright © 2018. All rights reserved.