Object HashMap<String, String>
java.util.Punchcard
Note that the syntax is ambiguous here, and JavaParser does not know what is to the left of the class. It assumes
cases like Map.Entry where Map is the scope of Entry. In java.util.Punchcard, it will not
recognize that java and util are parts of the package name. Instead, it will set util as the scope of Punchcard, as a
ClassOrInterfaceType (which it is not.) In turn, util will have java as its scope, also as a
ClassOrInterfaceType
| Modifier and Type | Field and Description |
|---|---|
| private SimpleName | |
| private ClassOrInterfaceType | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassOrInterfaceType(final String name)
Deprecated
use JavaParser.parseClassOrInterfaceType instead. This constructor does not understand generics.
|
| public | |
| public | ClassOrInterfaceType(final ClassOrInterfaceType scope, final SimpleName name, final NodeList<Type> typeArguments)
|
| public | ClassOrInterfaceType(final ClassOrInterfaceType scope, final SimpleName name, final NodeList<Type> typeArguments, final NodeList<AnnotationExpr> annotations)
|
| public | ClassOrInterfaceType(TokenRange tokenRange, ClassOrInterfaceType scope, SimpleName name, NodeList<Type> typeArguments, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private. |
| name | back to summary |
|---|---|
| private SimpleName name | |
| scope | back to summary |
|---|---|
| private ClassOrInterfaceType scope
| |
| typeArguments | back to summary |
|---|---|
| private NodeList<Type> typeArguments
| |
| ClassOrInterfaceType | back to summary |
|---|---|
| public ClassOrInterfaceType() | |
| ClassOrInterfaceType | back to summary |
|---|---|
| public ClassOrInterfaceType(final String name)
Deprecated use JavaParser.parseClassOrInterfaceType instead. This constructor does not understand generics. | |
| ClassOrInterfaceType | back to summary |
|---|---|
| public ClassOrInterfaceType(final ClassOrInterfaceType scope, final String name) | |
| ClassOrInterfaceType | back to summary |
|---|---|
| public ClassOrInterfaceType(final ClassOrInterfaceType scope, final SimpleName name, final NodeList<Type> typeArguments) | |
| ClassOrInterfaceType | back to summary |
|---|---|
public ClassOrInterfaceType(final ClassOrInterfaceType scope, final SimpleName name, final NodeList<Type> typeArguments, final NodeList<AnnotationExpr> annotations)
| |
| ClassOrInterfaceType | back to summary |
|---|---|
| public ClassOrInterfaceType(TokenRange tokenRange, ClassOrInterfaceType scope, SimpleName name, NodeList<Type> typeArguments, NodeList<AnnotationExpr> annotations) 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.
| |
| asClassOrInterfaceType | back to summary |
|---|---|
| public ClassOrInterfaceType asClassOrInterfaceType() Overrides com.
| |
| asString | back to summary |
|---|---|
| public String asString() Implements abstract com.
| |
| clone | back to summary |
|---|---|
| public ClassOrInterfaceType 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
| |
| getMetaModel | back to summary |
|---|---|
| public ClassOrInterfaceTypeMetaModel getMetaModel() Overrides com.
| |
| getName | back to summary |
|---|---|
| public SimpleName getName() Implements com.
| |
| getScope | back to summary |
|---|---|
public Optional
| |
| getTypeArguments | back to summary |
|---|---|
| public Optional Implements com.
| |
| ifClassOrInterfaceType | back to summary |
|---|---|
| public void ifClassOrInterfaceType(Consumer<ClassOrInterfaceType> action) Overrides com.
| |
| isBoxedType | back to summary |
|---|---|
| public boolean isBoxedType() | |
| isClassOrInterfaceType | back to summary |
|---|---|
| public boolean isClassOrInterfaceType() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| removeScope | back to summary |
|---|---|
public ClassOrInterfaceType removeScope()
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedReferenceType resolve() Implements abstract com. Implements com.
| |
| setAnnotations | back to summary |
|---|---|
| public ClassOrInterfaceType setAnnotations(NodeList<AnnotationExpr> annotations) Overrides com. Implements com.
| |
| setName | back to summary |
|---|---|
| public ClassOrInterfaceType setName(final SimpleName name) Implements com.
| |
| setScope | back to summary |
|---|---|
| public ClassOrInterfaceType setScope(final ClassOrInterfaceType scope) Sets the scope
| |
| setTypeArguments | back to summary |
|---|---|
| public ClassOrInterfaceType setTypeArguments(final NodeList<Type> typeArguments) Implements com. Sets the typeArguments
| |
| toClassOrInterfaceType | back to summary |
|---|---|
| public Optional Overrides com.
| |
| toUnboxedType | back to summary |
|---|---|
| public PrimitiveType toUnboxedType() throws UnsupportedOperationException | |