public class PrimitiveType extends Type implements NodeWithAnnotations<PrimitiveType>
int
boolean
short| Modifier and Type | Class and Description |
|---|---|
static class |
PrimitiveType.Primitive |
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
PrimitiveType() |
PrimitiveType(PrimitiveType.Primitive type) |
PrimitiveType(PrimitiveType.Primitive type,
NodeList<AnnotationExpr> annotations) |
PrimitiveType(TokenRange tokenRange,
PrimitiveType.Primitive type,
NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.
|
asArrayType, asClassOrInterfaceType, asIntersectionType, asReferenceType, asTypeParameter, asUnionType, asUnknownType, asVarType, asVoidType, asWildcardType, getAnnotation, getAnnotations, getArrayLevel, getElementType, ifArrayType, ifClassOrInterfaceType, ifIntersectionType, ifReferenceType, ifTypeParameter, ifUnionType, ifUnknownType, ifVarType, ifVoidType, ifWildcardType, isArrayType, isClassOrInterfaceType, isIntersectionType, isReferenceType, isTypeParameter, isUnionType, isUnknownType, isVarType, isVoidType, isWildcardType, toArrayType, toClassOrInterfaceType, toIntersectionType, toReferenceType, toTypeParameter, toUnionType, toUnknownType, toVarType, toVoidType, toWildcardTypeaddOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, getToStringPrettyPrinterConfiguration, hashCode, isAncestorOf, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, setToStringPrettyPrinterConfiguration, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walkfinalize, getClass, notify, notifyAll, wait, wait, waitaddAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, getAnnotations, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnitfindAncestor, findAncestor, isDescendantOfcontainsWithin, containsWithinRange, getBegin, getEndpublic PrimitiveType()
public PrimitiveType(PrimitiveType.Primitive type)
public PrimitiveType(PrimitiveType.Primitive type, NodeList<AnnotationExpr> annotations)
public PrimitiveType(TokenRange tokenRange, PrimitiveType.Primitive type, NodeList<AnnotationExpr> annotations)
public static PrimitiveType booleanType()
public static PrimitiveType charType()
public static PrimitiveType byteType()
public static PrimitiveType shortType()
public static PrimitiveType intType()
public static PrimitiveType longType()
public static PrimitiveType floatType()
public static PrimitiveType doubleType()
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitableaccept in interface 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)
Visitablepublic PrimitiveType.Primitive getType()
public ClassOrInterfaceType toBoxedType()
public PrimitiveType setType(PrimitiveType.Primitive type)
public PrimitiveType setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<PrimitiveType>setAnnotations in class Typepublic PrimitiveType clone()
public PrimitiveTypeMetaModel getMetaModel()
getMetaModel in class Typepublic boolean isPrimitiveType()
isPrimitiveType in class Typepublic PrimitiveType asPrimitiveType()
asPrimitiveType in class Typepublic void ifPrimitiveType(Consumer<PrimitiveType> action)
ifPrimitiveType in class Typepublic ResolvedPrimitiveType resolve()
resolve in interface Resolvable<ResolvedType>resolve in class Typepublic Optional<PrimitiveType> toPrimitiveType()
toPrimitiveType in class TypeCopyright © 2007–2019. All rights reserved.