| Modifier and Type | Field and Description |
|---|---|
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | BodyDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private. |
| protected |
| annotations | back to summary |
|---|---|
| private NodeList<AnnotationExpr> annotations | |
| BodyDeclaration | back to summary |
|---|---|
| public BodyDeclaration() | |
| BodyDeclaration | back to summary |
|---|---|
public BodyDeclaration(NodeList<AnnotationExpr> annotations)
| |
| BodyDeclaration | back to summary |
|---|---|
| public BodyDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations) This constructor is used by the parser and is considered private.
| |
| BodyDeclaration | back to summary |
|---|---|
| protected BodyDeclaration(TokenRange range) | |
| asAnnotationDeclaration | back to summary |
|---|---|
public AnnotationDeclaration asAnnotationDeclaration()
| |
| asAnnotationMemberDeclaration | back to summary |
|---|---|
public AnnotationMemberDeclaration asAnnotationMemberDeclaration()
| |
| asCallableDeclaration | back to summary |
|---|---|
public CallableDeclaration
| |
| asClassOrInterfaceDeclaration | back to summary |
|---|---|
public ClassOrInterfaceDeclaration asClassOrInterfaceDeclaration()
| |
| asConstructorDeclaration | back to summary |
|---|---|
public ConstructorDeclaration asConstructorDeclaration()
| |
| asEnumConstantDeclaration | back to summary |
|---|---|
public EnumConstantDeclaration asEnumConstantDeclaration()
| |
| asEnumDeclaration | back to summary |
|---|---|
public EnumDeclaration asEnumDeclaration()
| |
| asFieldDeclaration | back to summary |
|---|---|
public FieldDeclaration asFieldDeclaration()
| |
| asInitializerDeclaration | back to summary |
|---|---|
public InitializerDeclaration asInitializerDeclaration()
| |
| asMethodDeclaration | back to summary |
|---|---|
public MethodDeclaration asMethodDeclaration()
| |
| asTypeDeclaration | back to summary |
|---|---|
public TypeDeclaration
| |
| clone | back to summary |
|---|---|
| public BodyDeclaration 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
| |
| getAnnotations | back to summary |
|---|---|
| public NodeList Implements com.
| |
| getMetaModel | back to summary |
|---|---|
| public BodyDeclarationMetaModel getMetaModel() Overrides com.
| |
| ifAnnotationDeclaration | back to summary |
|---|---|
public void ifAnnotationDeclaration(Consumer<AnnotationDeclaration> action)
| |
| ifAnnotationMemberDeclaration | back to summary |
|---|---|
public void ifAnnotationMemberDeclaration(Consumer<AnnotationMemberDeclaration> action)
| |
| ifCallableDeclaration | back to summary |
|---|---|
public void ifCallableDeclaration(Consumer<CallableDeclaration<T extends CallableDeclaration<?>>> action)
| |
| ifClassOrInterfaceDeclaration | back to summary |
|---|---|
public void ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action)
| |
| ifConstructorDeclaration | back to summary |
|---|---|
public void ifConstructorDeclaration(Consumer<ConstructorDeclaration> action)
| |
| ifEnumConstantDeclaration | back to summary |
|---|---|
public void ifEnumConstantDeclaration(Consumer<EnumConstantDeclaration> action)
| |
| ifEnumDeclaration | back to summary |
|---|---|
public void ifEnumDeclaration(Consumer<EnumDeclaration> action)
| |
| ifFieldDeclaration | back to summary |
|---|---|
public void ifFieldDeclaration(Consumer<FieldDeclaration> action)
| |
| ifInitializerDeclaration | back to summary |
|---|---|
public void ifInitializerDeclaration(Consumer<InitializerDeclaration> action)
| |
| ifMethodDeclaration | back to summary |
|---|---|
public void ifMethodDeclaration(Consumer<MethodDeclaration> action)
| |
| ifTypeDeclaration | back to summary |
|---|---|
public void ifTypeDeclaration(Consumer<TypeDeclaration<T extends TypeDeclaration<?>>> action)
| |
| isAnnotationDeclaration | back to summary |
|---|---|
public boolean isAnnotationDeclaration()
| |
| isAnnotationMemberDeclaration | back to summary |
|---|---|
public boolean isAnnotationMemberDeclaration()
| |
| isCallableDeclaration | back to summary |
|---|---|
public boolean isCallableDeclaration()
| |
| isClassOrInterfaceDeclaration | back to summary |
|---|---|
public boolean isClassOrInterfaceDeclaration()
| |
| isConstructorDeclaration | back to summary |
|---|---|
public boolean isConstructorDeclaration()
| |
| isEnumConstantDeclaration | back to summary |
|---|---|
public boolean isEnumConstantDeclaration()
| |
| isEnumDeclaration | back to summary |
|---|---|
public boolean isEnumDeclaration()
| |
| isFieldDeclaration | back to summary |
|---|---|
public boolean isFieldDeclaration()
| |
| isInitializerDeclaration | back to summary |
|---|---|
public boolean isInitializerDeclaration()
| |
| isMethodDeclaration | back to summary |
|---|---|
public boolean isMethodDeclaration()
| |
| isTypeDeclaration | back to summary |
|---|---|
public boolean isTypeDeclaration()
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setAnnotations | back to summary |
|---|---|
| public T setAnnotations(final NodeList<AnnotationExpr> annotations) Implements com.
| |
| toAnnotationDeclaration | back to summary |
|---|---|
public Optional
| |
| toAnnotationMemberDeclaration | back to summary |
|---|---|
public Optional
| |
| toCallableDeclaration | back to summary |
|---|---|
public Optional
| |
| toClassOrInterfaceDeclaration | back to summary |
|---|---|
public Optional
| |
| toConstructorDeclaration | back to summary |
|---|---|
public Optional
| |
| toEnumConstantDeclaration | back to summary |
|---|---|
public Optional
| |
| toEnumDeclaration | back to summary |
|---|---|
public Optional
| |
| toFieldDeclaration | back to summary |
|---|---|
public Optional
| |
| toInitializerDeclaration | back to summary |
|---|---|
public Optional
| |
| toMethodDeclaration | back to summary |
|---|---|
public Optional
| |
| toTypeDeclaration | back to summary |
|---|---|
public Optional
| |