public final class VariableDeclarationExpr extends Expression implements NodeWithElementType<VariableDeclarationExpr>, NodeWithModifiers<VariableDeclarationExpr>, NodeWithAnnotations<VariableDeclarationExpr>, NodeWithVariables<VariableDeclarationExpr>
Node.ObserverRegistrationModeABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration| Constructor and Description |
|---|
VariableDeclarationExpr() |
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
Type elementType,
NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(Range range,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type elementType,
NodeList<VariableDeclarator> variables,
NodeList<ArrayBracketPair> arrayBracketPairsAfterType) |
VariableDeclarationExpr(Type elementType,
NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(Type elementType,
String variableName) |
VariableDeclarationExpr(Type elementType,
String variableName,
Modifier... modifiers) |
VariableDeclarationExpr(Type elementType,
VariableDeclarator var) |
VariableDeclarationExpr(Type elementType,
VariableDeclarator var,
Modifier... modifiers) |
addOrphanComment, 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, waitsetElementType, setElementTypeaddModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatileaddAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresentgetVariablegetAncestorOfType, setAsParentNodeOf, setAsParentNodeOfpublic VariableDeclarationExpr()
public VariableDeclarationExpr(Type elementType, VariableDeclarator var)
public VariableDeclarationExpr(Type elementType, String variableName, Modifier... modifiers)
public VariableDeclarationExpr(Type elementType, VariableDeclarator var, Modifier... modifiers)
public VariableDeclarationExpr(Type elementType, NodeList<VariableDeclarator> variables)
public VariableDeclarationExpr(EnumSet<Modifier> modifiers, Type elementType, NodeList<VariableDeclarator> variables)
public VariableDeclarationExpr(Range range, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, Type elementType, NodeList<VariableDeclarator> variables, NodeList<ArrayBracketPair> arrayBracketPairsAfterType)
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 NodeList<AnnotationExpr> getAnnotations()
getAnnotations in interface NodeWithAnnotations<VariableDeclarationExpr>public EnumSet<Modifier> getModifiers()
getModifiers in interface NodeWithModifiers<VariableDeclarationExpr>Modifier@Deprecated public Type getElementType()
getElementType in interface NodeWithElementType<VariableDeclarationExpr>public NodeList<VariableDeclarator> getVariables()
getVariables in interface NodeWithVariables<VariableDeclarationExpr>public VariableDeclarationExpr setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations in interface NodeWithAnnotations<VariableDeclarationExpr>public VariableDeclarationExpr setModifiers(EnumSet<Modifier> modifiers)
setModifiers in interface NodeWithModifiers<VariableDeclarationExpr>@Deprecated public VariableDeclarationExpr setElementType(Type elementType)
setElementType in interface NodeWithElementType<VariableDeclarationExpr>elementType - the element elementTypepublic VariableDeclarationExpr setVariables(NodeList<VariableDeclarator> variables)
setVariables in interface NodeWithVariables<VariableDeclarationExpr>@Deprecated public NodeList<ArrayBracketPair> getArrayBracketPairsAfterElementType()
getArrayBracketPairsAfterElementType in interface NodeWithElementType<VariableDeclarationExpr>@Deprecated public VariableDeclarationExpr setArrayBracketPairsAfterElementType(NodeList<ArrayBracketPair> arrayBracketPairsAfterType)
setArrayBracketPairsAfterElementType in interface NodeWithElementType<VariableDeclarationExpr>Copyright © 2007–2016. All rights reserved.