public class VoidType extends Type implements NodeWithAnnotations<VoidType>
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY
Constructor and Description |
---|
VoidType() |
VoidType(TokenRange tokenRange)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
String |
asString() |
VoidType |
asVoidType() |
VoidType |
clone() |
ResolvedType |
convertToUsage(Context context) |
VoidTypeMetaModel |
getMetaModel() |
void |
ifVoidType(Consumer<VoidType> action) |
boolean |
isVoidType() |
ResolvedVoidType |
resolve() |
VoidType |
setAnnotations(NodeList<AnnotationExpr> annotations) |
String |
toDescriptor() |
Optional<VoidType> |
toVoidType() |
asArrayType, asClassOrInterfaceType, asIntersectionType, asPrimitiveType, asReferenceType, asTypeParameter, asUnionType, asUnknownType, asVarType, asWildcardType, getAnnotation, getAnnotations, getArrayLevel, getElementType, ifArrayType, ifClassOrInterfaceType, ifIntersectionType, ifPrimitiveType, ifReferenceType, ifTypeParameter, ifUnionType, ifUnknownType, ifVarType, ifWildcardType, isArrayType, isClassOrInterfaceType, isIntersectionType, isPrimitiveType, isReferenceType, isTypeParameter, isUnionType, isUnknownType, isVarType, isWildcardType, remove, replace, toArrayType, toClassOrInterfaceType, toIntersectionType, toPrimitiveType, toReferenceType, toTypeParameter, toUnionType, toUnknownType, toVarType, toWildcardType
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
finalize, getClass, notify, notifyAll, wait, wait, wait
addAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, getAnnotations, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnit
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOf
containsWithin, containsWithinRange, getBegin, getEnd, hasRange
public VoidType()
public VoidType(TokenRange tokenRange)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
accept
in interface Visitable
R
- the type of the return value of the visitorA
- the type the user argument passed to the visitorv
- the visitor implementationarg
- the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitable
public VoidType setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations
in interface NodeWithAnnotations<VoidType>
setAnnotations
in class Type
public String toDescriptor()
toDescriptor
in class Type
public VoidTypeMetaModel getMetaModel()
getMetaModel
in class Type
public boolean isVoidType()
isVoidType
in class Type
public VoidType asVoidType()
asVoidType
in class Type
public void ifVoidType(Consumer<VoidType> action)
ifVoidType
in class Type
public ResolvedVoidType resolve()
resolve
in interface Resolvable<ResolvedType>
resolve
in class Type
public Optional<VoidType> toVoidType()
toVoidType
in class Type
public ResolvedType convertToUsage(Context context)
convertToUsage
in interface ConvertibleToUsage
Copyright © 2007–2023. All rights reserved.