| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private NodeList | |
| private SimpleName |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | TypeDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
|
| public | TypeDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public T | addMember(BodyDeclaration<?>
member declaration decl)Overrides default com. |
| public TypeDeclaration | |
| public TypeDeclaration | clone()
Overrides com. |
| public List | Returns: methods or constructors whose signatures match the passed signature.
|
| public Optional | getFullyQualifiedName()
Returns the fully qualified name of this type, derived only from information available in this compilation unit. |
| public NodeList | |
| public TypeDeclarationMetaModel | |
| public NodeList | Returns: modifiersImplements com. |
| public SimpleName | |
| public void | ifTypeDeclaration(Consumer<TypeDeclaration<T extends TypeDeclaration<?>>> action)
Overrides com. |
| public boolean | Returns: is this type's parent a TypeDeclaration? NOTE: many people are confused over terminology. Refer to https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html .
|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public abstract ResolvedReferenceTypeDeclaration | |
| public T | setMembers(final NodeList<BodyDeclaration<?>> members)
Implements com. |
| public T | setModifiers(final NodeList<Modifier> modifiers)
Implements com. |
| public T | setName(final SimpleName name)
Implements com. |
| public Optional |
| members | back to summary |
|---|---|
| private NodeList<BodyDeclaration<?>> members | |
| modifiers | back to summary |
|---|---|
| private NodeList<Modifier> modifiers | |
| name | back to summary |
|---|---|
| private SimpleName name | |
| TypeDeclaration | back to summary |
|---|---|
| public TypeDeclaration() | |
| TypeDeclaration | back to summary |
|---|---|
| public TypeDeclaration(NodeList<Modifier> modifiers, String name) | |
| TypeDeclaration | back to summary |
|---|---|
public TypeDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members)
| |
| TypeDeclaration | back to summary |
|---|---|
| public TypeDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, SimpleName name, NodeList<BodyDeclaration<?>> members) This constructor is used by the parser and is considered private.
| |
| addMember | back to summary |
|---|---|
| public T addMember(BodyDeclaration<?> decl) Overrides default com. Adds the given declaration to the specified type.
| |
| asTypeDeclaration | back to summary |
|---|---|
| public TypeDeclaration Overrides com.
| |
| clone | back to summary |
|---|---|
| public TypeDeclaration 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
| |
| getCallablesWithSignature | back to summary |
|---|---|
public List
| |
| getFullyQualifiedName | back to summary |
|---|---|
| public Optional Returns the fully qualified name of this type, derived only from information available in this compilation unit. (So no symbol solving happens.) If the declared type is a local class declaration, it will return Optional.empty(). If the declared type is not contained in a compilation unit, it will return Optional.empty(). | |
| getMembers | back to summary |
|---|---|
| public NodeList Implements com.
| |
| getMetaModel | back to summary |
|---|---|
| public TypeDeclarationMetaModel getMetaModel() Overrides com.
| |
| getModifiers | back to summary |
|---|---|
| public NodeList Implements com. Return the modifiers of this type declaration.
| |
| getName | back to summary |
|---|---|
| public SimpleName getName() Implements com.
| |
| ifTypeDeclaration | back to summary |
|---|---|
| public void ifTypeDeclaration(Consumer<TypeDeclaration<T extends TypeDeclaration<?>>> action) Overrides com.
| |
| isNestedType | back to summary |
|---|---|
public boolean isNestedType()
| |
| isTopLevelType | back to summary |
|---|---|
public boolean isTopLevelType()
| |
| isTypeDeclaration | back to summary |
|---|---|
| public boolean isTypeDeclaration() Overrides com.
| |
| 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 abstract ResolvedReferenceTypeDeclaration resolve() | |
| setMembers | back to summary |
|---|---|
| public T setMembers(final NodeList<BodyDeclaration<?>> members) Implements com.
| |
| setModifiers | back to summary |
|---|---|
| public T setModifiers(final NodeList<Modifier> modifiers) Implements com.
| |
| setName | back to summary |
|---|---|
| public T setName(final SimpleName name) Implements com.
| |
| toTypeDeclaration | back to summary |
|---|---|
| public Optional Overrides com.
| |