class X { ... }
| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private NodeList | |
| private boolean | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassOrInterfaceDeclaration(final NodeList<Modifier> modifiers, final boolean isInterface, final String name)
|
| public | ClassOrInterfaceDeclaration(final NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annotations, final boolean isInterface, final SimpleName name, final NodeList<TypeParameter> typeParameters, final NodeList<ClassOrInterfaceType> extendedTypes, final NodeList<ClassOrInterfaceType> implementedTypes, final NodeList<BodyDeclaration<?>> members)
|
| public | ClassOrInterfaceDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members)
This constructor is used by the parser and is considered private. |
| extendedTypes | back to summary |
|---|---|
| private NodeList<ClassOrInterfaceType> extendedTypes | |
| implementedTypes | back to summary |
|---|---|
| private NodeList<ClassOrInterfaceType> implementedTypes | |
| isInterface | back to summary |
|---|---|
| private boolean isInterface | |
| typeParameters | back to summary |
|---|---|
| private NodeList<TypeParameter> typeParameters | |
| ClassOrInterfaceDeclaration | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration() | |
| ClassOrInterfaceDeclaration | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration(final NodeList<Modifier> modifiers, final boolean isInterface, final String name) | |
| ClassOrInterfaceDeclaration | back to summary |
|---|---|
public ClassOrInterfaceDeclaration(final NodeList<Modifier> modifiers, final NodeList<AnnotationExpr> annotations, final boolean isInterface, final SimpleName name, final NodeList<TypeParameter> typeParameters, final NodeList<ClassOrInterfaceType> extendedTypes, final NodeList<ClassOrInterfaceType> implementedTypes, final NodeList<BodyDeclaration<?>> members)
| |
| ClassOrInterfaceDeclaration | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, boolean isInterface, SimpleName name, NodeList<TypeParameter> typeParameters, NodeList<ClassOrInterfaceType> extendedTypes, NodeList<ClassOrInterfaceType> implementedTypes, NodeList<BodyDeclaration<?>> members) This constructor is used by the parser and is considered private.
| |
| 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.
| |
| asClassOrInterfaceDeclaration | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration asClassOrInterfaceDeclaration() Overrides com.
| |
| clone | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration 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
| |
| getExtendedTypes | back to summary |
|---|---|
| public NodeList Implements com.
| |
| getFullyQualifiedName | back to summary |
|---|---|
| public Optional Overrides com. Doc from com. 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().
| |
| getImplementedTypes | back to summary |
|---|---|
| public NodeList Implements com.
| |
| getMetaModel | back to summary |
|---|---|
| public ClassOrInterfaceDeclarationMetaModel getMetaModel() Overrides com.
| |
| getTypeParameters | back to summary |
|---|---|
| public NodeList Implements com.
| |
| ifClassOrInterfaceDeclaration | back to summary |
|---|---|
| public void ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action) Overrides com.
| |
| isClassOrInterfaceDeclaration | back to summary |
|---|---|
| public boolean isClassOrInterfaceDeclaration() Overrides com.
| |
| isInnerClass | back to summary |
|---|---|
public boolean isInnerClass()
| |
| isInterface | back to summary |
|---|---|
public boolean isInterface()
| |
| isLocalClassDeclaration | back to summary |
|---|---|
public boolean isLocalClassDeclaration()
| |
| 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 ResolvedReferenceTypeDeclaration resolve() Implements abstract com. Implements com.
| |
| setExtendedTypes | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration setExtendedTypes(final NodeList<ClassOrInterfaceType> extendedTypes) Implements com.
| |
| setImplementedTypes | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration setImplementedTypes(final NodeList<ClassOrInterfaceType> implementedTypes) Implements com.
| |
| setInterface | back to summary |
|---|---|
public ClassOrInterfaceDeclaration setInterface(final boolean isInterface)
| |
| setTypeParameters | back to summary |
|---|---|
| public ClassOrInterfaceDeclaration setTypeParameters(final NodeList<TypeParameter> typeParameters) Implements com.
| |
| toClassOrInterfaceDeclaration | back to summary |
|---|---|
| public Optional Overrides com.
| |