public abstract class Type extends Node
Node.ObserverRegistrationMode, Node.Parsedness
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Modifier | Constructor and Description |
---|---|
|
Type(NodeList<AnnotationExpr> annotations) |
protected |
Type(TokenRange range)
Several sub classes do not support annotations.
|
|
Type(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
asString() |
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, customInitialization, equals, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodeLists, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeForced, removeOrphanComment, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
protected Type(TokenRange range)
public Type(NodeList<AnnotationExpr> annotations)
@Generated(value="com.github.javaparser.generator.core.node.MainConstructorGenerator") public Type(TokenRange tokenRange, NodeList<AnnotationExpr> annotations)
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<AnnotationExpr> getAnnotations()
public AnnotationExpr getAnnotation(int i)
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public Type setAnnotations(NodeList<AnnotationExpr> annotations)
public Type getElementType()
In "int[] a[];
", the element type is int.
public int getArrayLevel()
@Generated(value="com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
public abstract String asString()
@Generated(value="com.github.javaparser.generator.core.node.CloneGenerator") public Type clone()
@Generated(value="com.github.javaparser.generator.core.node.GetMetaModelGenerator") public TypeMetaModel getMetaModel()
getMetaModel
in class Node
Copyright © 2007–2017. All rights reserved.