Package com.github.javaparser.ast.type
Class ReferenceType
java.lang.Object
com.github.javaparser.ast.Node
com.github.javaparser.ast.type.Type
com.github.javaparser.ast.type.ReferenceType
- All Implemented Interfaces:
NodeWithRange<Node>
,NodeWithTokenRange<Node>
,Observable
,Visitable
,HasParentNode<Node>
,Resolvable<ResolvedType>
,Cloneable
- Direct Known Subclasses:
ArrayType
,ClassOrInterfaceType
,TypeParameter
Base class for reference types.
- Author:
- Julio Vilmar Gesser
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.javaparser.ast.Node
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal
-
Field Summary
Fields inherited from class com.github.javaparser.ast.Node
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY
-
Constructor Summary
ConstructorDescriptionReferenceType(NodeList<AnnotationExpr> annotations)
ReferenceType(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private. -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
ifReferenceType(Consumer<ReferenceType> action)
boolean
boolean
boolean
abstract String
Methods inherited from class com.github.javaparser.ast.type.Type
asArrayType, asClassOrInterfaceType, asIntersectionType, asPrimitiveType, asString, asTypeParameter, asUnionType, asUnknownType, asVarType, asVoidType, asWildcardType, getAnnotation, getAnnotations, getArrayLevel, getElementType, ifArrayType, ifClassOrInterfaceType, ifIntersectionType, ifPrimitiveType, ifTypeParameter, ifUnionType, ifUnknownType, ifVarType, ifVoidType, ifWildcardType, isArrayType, isClassOrInterfaceType, isIntersectionType, isPrimitiveType, isTypeParameter, isUnionType, isUnknownType, isVarType, isVoidType, isWildcardType, resolve, setAnnotations, toArrayType, toClassOrInterfaceType, toIntersectionType, toPrimitiveType, toTypeParameter, toUnionType, toUnknownType, toVarType, toVoidType, toWildcardType
Methods inherited from class com.github.javaparser.ast.Node
addOrphanComment, containsData, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getDefaultPrinterConfiguration, getLineEndingStyle, getLineEndingStyleOrDefault, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getPrinter, getPrinter, getRange, getSymbolResolver, getTokenRange, hashCode, hasScope, isAncestorOf, isPhantom, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walk
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.javaparser.HasParentNode
findAncestor, findAncestor, hasParentNode, isDescendantOf
Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithRange
containsWithin, containsWithinRange, getBegin, getEnd, hasRange
-
Constructor Details
-
ReferenceType
public ReferenceType() -
ReferenceType
-
ReferenceType
This constructor is used by the parser and is considered private.
-
-
Method Details
-
remove
-
clone
-
getMetaModel
- Overrides:
getMetaModel
in classType
- Returns:
- get JavaParser specific node introspection information.
-
replace
-
isReferenceType
public boolean isReferenceType()- Overrides:
isReferenceType
in classType
-
asReferenceType
- Overrides:
asReferenceType
in classType
-
ifReferenceType
- Overrides:
ifReferenceType
in classType
-
toReferenceType
- Overrides:
toReferenceType
in classType
-
toDescriptor
- Overrides:
toDescriptor
in classType
-