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, ConvertibleToUsage, Visitable, HasParentNode<Node>, Resolvable<ResolvedType>, Cloneable
- Direct Known Subclasses:
ArrayType, ClassOrInterfaceType, TypeParameter
Base class for reference types.
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal -
Field Summary
Fields inherited from class Node
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY -
Constructor Summary
ConstructorsConstructorDescriptionReferenceType(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()voidifReferenceType(Consumer<ReferenceType> action) booleanabstract StringMethods inherited from class 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, remove, replace, resolve, setAnnotations, toArrayType, toClassOrInterfaceType, toIntersectionType, toPrimitiveType, toTypeParameter, toUnionType, toUnknownType, toVarType, toVoidType, toWildcardTypeMethods inherited from class Node
addOrphanComment, containsData, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findByRange, findCompilationUnit, findData, 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, walkMethods inherited from interface ConvertibleToUsage
convertToUsageMethods inherited from interface HasParentNode
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOfMethods inherited from interface 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
-
clone
-
getMetaModel
- Overrides:
getMetaModelin classType- Returns:
- get JavaParser specific node introspection information.
-
isReferenceType
public boolean isReferenceType()- Overrides:
isReferenceTypein classType
-
asReferenceType
- Overrides:
asReferenceTypein classType
-
ifReferenceType
- Overrides:
ifReferenceTypein classType
-
toReferenceType
- Overrides:
toReferenceTypein classType
-
toDescriptor
- Overrides:
toDescriptorin classType
-