public final class PrimitiveType extends Type<PrimitiveType> implements NodeWithAnnotations<PrimitiveType>
| Modifier and Type | Class and Description |
|---|---|
static class |
PrimitiveType.Primitive |
Node.ObserverRegistrationMode| Modifier and Type | Field and Description |
|---|---|
static PrimitiveType |
BOOLEAN_TYPE |
static PrimitiveType |
BYTE_TYPE |
static PrimitiveType |
CHAR_TYPE |
static PrimitiveType |
DOUBLE_TYPE |
static PrimitiveType |
FLOAT_TYPE |
static PrimitiveType |
INT_TYPE |
static PrimitiveType |
LONG_TYPE |
static PrimitiveType |
SHORT_TYPE |
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration| Constructor and Description |
|---|
PrimitiveType() |
PrimitiveType(PrimitiveType.Primitive type) |
PrimitiveType(Range range,
PrimitiveType.Primitive type) |
| 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() |
PrimitiveType.Primitive |
getType() |
PrimitiveType |
setType(PrimitiveType.Primitive type) |
ClassOrInterfaceType |
toBoxedType() |
getAnnotation, getAnnotations, getElementType, setAnnotationsaddOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getData, getEnd, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregisterfinalize, getClass, notify, notifyAll, wait, wait, waitaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, getAnnotations, isAnnotationPresent, isAnnotationPresent, setAnnotationsgetAncestorOfType, setAsParentNodeOf, setAsParentNodeOfpublic static final PrimitiveType BYTE_TYPE
public static final PrimitiveType SHORT_TYPE
public static final PrimitiveType INT_TYPE
public static final PrimitiveType LONG_TYPE
public static final PrimitiveType FLOAT_TYPE
public static final PrimitiveType DOUBLE_TYPE
public static final PrimitiveType BOOLEAN_TYPE
public static final PrimitiveType CHAR_TYPE
public PrimitiveType()
public PrimitiveType(PrimitiveType.Primitive type)
public PrimitiveType(Range range, PrimitiveType.Primitive type)
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 String asString()
Copyright © 2007–2016. All rights reserved.