class X { private static
int a=15*15; }
| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | FieldDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
|
| public | FieldDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
This constructor is used by the parser and is considered private. |
| public | FieldDeclaration(NodeList<Modifier>
modifiers modifiers, Type type type, String field name name)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public FieldDeclaration | |
| public FieldDeclaration | clone()
Overrides com. |
| public MethodDeclaration | Returns: theMethodDeclaration createdCreate a getter for this field, will only work if this field declares only 1 identifier and if this field is already added to a ClassOrInterfaceDeclaration |
| public MethodDeclaration | Returns: theMethodDeclaration createdCreate a setter for this field, will only work if this field declares only 1 identifier and if this field is already added to a ClassOrInterfaceDeclaration |
| public FieldDeclarationMetaModel | |
| public NodeList | Returns: modifiersImplements com. |
| public NodeList | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public ResolvedFieldDeclaration | |
| public FieldDeclaration | setModifiers(final NodeList<Modifier> modifiers)
Implements com. |
| public FieldDeclaration | |
| public FieldDeclaration | setVariables(final NodeList<VariableDeclarator> variables)
Implements com. |
| public FieldDeclaration | |
| public Optional |
| modifiers | back to summary |
|---|---|
| private NodeList<Modifier> modifiers | |
| variables | back to summary |
|---|---|
| private NodeList<VariableDeclarator> variables
| |
| FieldDeclaration | back to summary |
|---|---|
| public FieldDeclaration() | |
| FieldDeclaration | back to summary |
|---|---|
| public FieldDeclaration(NodeList<Modifier> modifiers, VariableDeclarator variable) | |
| FieldDeclaration | back to summary |
|---|---|
| public FieldDeclaration(NodeList<Modifier> modifiers, NodeList<VariableDeclarator> variables) | |
| FieldDeclaration | back to summary |
|---|---|
public FieldDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
| |
| FieldDeclaration | back to summary |
|---|---|
| public FieldDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables) This constructor is used by the parser and is considered private.
| |
| FieldDeclaration | back to summary |
|---|---|
| public FieldDeclaration(NodeList<Modifier> modifiers, Type type, String name) Creates a | |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asFieldDeclaration | back to summary |
|---|---|
| public FieldDeclaration asFieldDeclaration() Overrides com.
| |
| clone | back to summary |
|---|---|
| public FieldDeclaration clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| createGetter | back to summary |
|---|---|
| public MethodDeclaration createGetter() Create a getter for this field, will only work if this field declares only 1 identifier and if this field is already added to a ClassOrInterfaceDeclaration
| |
| createSetter | back to summary |
|---|---|
| public MethodDeclaration createSetter() Create a setter for this field, will only work if this field declares only 1 identifier and if this field is already added to a ClassOrInterfaceDeclaration
| |
| getMetaModel | back to summary |
|---|---|
| public FieldDeclarationMetaModel getMetaModel() Overrides com.
| |
| getModifiers | back to summary |
|---|---|
| public NodeList Implements com. Return the modifiers of this member declaration.
| |
| getVariables | back to summary |
|---|---|
| public NodeList Implements com.
| |
| ifFieldDeclaration | back to summary |
|---|---|
| public void ifFieldDeclaration(Consumer<FieldDeclaration> action) Overrides com.
| |
| isFieldDeclaration | back to summary |
|---|---|
| public boolean isFieldDeclaration() Overrides com.
| |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() | |
| isVolatile | back to summary |
|---|---|
| public boolean isVolatile() | |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedFieldDeclaration resolve() Implements com.
| |
| setModifiers | back to summary |
|---|---|
| public FieldDeclaration setModifiers(final NodeList<Modifier> modifiers) Implements com.
| |
| setTransient | back to summary |
|---|---|
| public FieldDeclaration setTransient(boolean set) | |
| setVariables | back to summary |
|---|---|
| public FieldDeclaration setVariables(final NodeList<VariableDeclarator> variables) Implements com.
| |
| setVolatile | back to summary |
|---|---|
| public FieldDeclaration setVolatile(boolean set) | |
| toFieldDeclaration | back to summary |
|---|---|
| public Optional Overrides com.
| |