public abstract class Type extends Node
Node.ObserverRegistrationMode
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor and Description |
---|
Type(Range range,
NodeList<AnnotationExpr> annotations) |
Modifier and Type | Method and Description |
---|---|
Type |
clone() |
AnnotationExpr |
getAnnotation(int i) |
NodeList<AnnotationExpr> |
getAnnotations() |
int |
getArrayLevel() |
Type |
getElementType()
Finds the element type, meaning: the type without ArrayTypes around it.
|
TypeMetaModel |
getMetaModel() |
boolean |
remove(Node node) |
Type |
setAnnotations(NodeList<AnnotationExpr> annotations) |
addOrphanComment, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getData, getEnd, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeOrphanComment, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
public Type(Range range, NodeList<AnnotationExpr> annotations)
public NodeList<AnnotationExpr> getAnnotations()
public AnnotationExpr getAnnotation(int i)
public Type setAnnotations(NodeList<AnnotationExpr> annotations)
public Type getElementType()
In "int[] a[];
", the element type is int.
public int getArrayLevel()
public TypeMetaModel getMetaModel()
getMetaModel
in class Node
Copyright © 2007–2017. All rights reserved.