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.TreeTraversal
ABSOLUTE_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, toWildcardType
addOrphanComment, 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, 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, isDescendantOf
containsWithin, containsWithinRange, getBegin, getEnd
public 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)
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 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 Type
public PrimitiveType clone()
public PrimitiveTypeMetaModel getMetaModel()
getMetaModel
in class Type
public boolean isPrimitiveType()
isPrimitiveType
in class Type
public PrimitiveType asPrimitiveType()
asPrimitiveType
in class Type
public void ifPrimitiveType(Consumer<PrimitiveType> action)
ifPrimitiveType
in class Type
public ResolvedPrimitiveType resolve()
resolve
in interface Resolvable<ResolvedType>
resolve
in class Type
public Optional<PrimitiveType> toPrimitiveType()
toPrimitiveType
in class Type
Copyright © 2007–2019. All rights reserved.