public class UnknownType extends Type
In DoubleToIntFunction d = x -> (int)x + 1; the x parameter in bold has type UnknownType.
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
UnknownType() |
UnknownType(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() |
UnknownType |
asUnknownType() |
UnknownType |
clone() |
ResolvedType |
convertToUsage(Context context)
A
UnknownType cannot be convertible to ResolvedType. |
UnknownTypeMetaModel |
getMetaModel() |
void |
ifUnknownType(Consumer<UnknownType> action) |
boolean |
isPhantom() |
boolean |
isUnknownType() |
ResolvedType |
resolve() |
UnknownType |
setAnnotations(NodeList<AnnotationExpr> annotations) |
Optional<UnknownType> |
toUnknownType() |
asArrayType, asClassOrInterfaceType, asIntersectionType, asPrimitiveType, asReferenceType, asTypeParameter, asUnionType, asVarType, asVoidType, asWildcardType, getAnnotation, getAnnotations, getArrayLevel, getElementType, ifArrayType, ifClassOrInterfaceType, ifIntersectionType, ifPrimitiveType, ifReferenceType, ifTypeParameter, ifUnionType, ifVarType, ifVoidType, ifWildcardType, isArrayType, isClassOrInterfaceType, isIntersectionType, isPrimitiveType, isReferenceType, isTypeParameter, isUnionType, isVarType, isVoidType, isWildcardType, remove, replace, toArrayType, toClassOrInterfaceType, toDescriptor, toIntersectionType, toPrimitiveType, toReferenceType, toTypeParameter, toUnionType, toVarType, toVoidType, toWildcardTypeaddOrphanComment, 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, 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, walkfinalize, getClass, notify, notifyAll, wait, wait, waitfindAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOfcontainsWithin, containsWithinRange, getBegin, getEnd, hasRangepublic UnknownType()
public UnknownType(TokenRange tokenRange)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
VisitableR - 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)
VisitableA - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitor (of type A)public UnknownType setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in class Typepublic UnknownType clone()
public UnknownTypeMetaModel getMetaModel()
getMetaModel in class Typepublic boolean isUnknownType()
isUnknownType in class Typepublic UnknownType asUnknownType()
asUnknownType in class Typepublic void ifUnknownType(Consumer<UnknownType> action)
ifUnknownType in class Typepublic ResolvedType resolve()
resolve in interface Resolvable<ResolvedType>resolve in class Typepublic Optional<UnknownType> toUnknownType()
toUnknownType in class Typepublic ResolvedType convertToUsage(Context context)
UnknownType cannot be convertible to ResolvedType.type - The type to be converted.context - The current context.Copyright © 2007–2023. All rights reserved.