public final class VariableDeclarationExpr extends Expression implements NodeWithFinalModifier<VariableDeclarationExpr>, NodeWithAnnotations<VariableDeclarationExpr>, NodeWithVariables<VariableDeclarationExpr>
final int x=3, y=55
Node.ObserverRegistrationMode, Node.Parsedness
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor and Description |
---|
VariableDeclarationExpr() |
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(NodeList<VariableDeclarator> variables) |
VariableDeclarationExpr(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables)
This constructor is used by the parser and is considered private.
|
VariableDeclarationExpr(Type type,
String variableName) |
VariableDeclarationExpr(Type type,
String variableName,
Modifier... modifiers) |
VariableDeclarationExpr(VariableDeclarator var) |
VariableDeclarationExpr(VariableDeclarator var,
Modifier... modifiers) |
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.
|
VariableDeclarationExpr |
asVariableDeclarationExpr() |
VariableDeclarationExpr |
clone() |
NodeList<AnnotationExpr> |
getAnnotations() |
VariableDeclarationExprMetaModel |
getMetaModel() |
EnumSet<Modifier> |
getModifiers()
Return the modifiers of this variable declaration.
|
NodeList<VariableDeclarator> |
getVariables() |
void |
ifVariableDeclarationExpr(Consumer<VariableDeclarationExpr> action) |
boolean |
isVariableDeclarationExpr() |
boolean |
remove(Node node) |
boolean |
replace(Node node,
Node replacementNode) |
VariableDeclarationExpr |
setAnnotations(NodeList<AnnotationExpr> annotations) |
VariableDeclarationExpr |
setModifiers(EnumSet<Modifier> modifiers) |
VariableDeclarationExpr |
setVariables(NodeList<VariableDeclarator> variables) |
asAnnotationExpr, asArrayAccessExpr, asArrayCreationExpr, asArrayInitializerExpr, asAssignExpr, asBinaryExpr, asBooleanLiteralExpr, asCastExpr, asCharLiteralExpr, asClassExpr, asConditionalExpr, asDoubleLiteralExpr, asEnclosedExpr, asFieldAccessExpr, asInstanceOfExpr, asIntegerLiteralExpr, asLambdaExpr, asLiteralExpr, asLiteralStringValueExpr, asLongLiteralExpr, asMarkerAnnotationExpr, asMethodCallExpr, asMethodReferenceExpr, asNameExpr, asNormalAnnotationExpr, asNullLiteralExpr, asObjectCreationExpr, asSingleMemberAnnotationExpr, asStringLiteralExpr, asSuperExpr, asThisExpr, asTypeExpr, asUnaryExpr, ifAnnotationExpr, ifArrayAccessExpr, ifArrayCreationExpr, ifArrayInitializerExpr, ifAssignExpr, ifBinaryExpr, ifBooleanLiteralExpr, ifCastExpr, ifCharLiteralExpr, ifClassExpr, ifConditionalExpr, ifDoubleLiteralExpr, ifEnclosedExpr, ifFieldAccessExpr, ifInstanceOfExpr, ifIntegerLiteralExpr, ifLambdaExpr, ifLiteralExpr, ifLiteralStringValueExpr, ifLongLiteralExpr, ifMarkerAnnotationExpr, ifMethodCallExpr, ifMethodReferenceExpr, ifNameExpr, ifNormalAnnotationExpr, ifNullLiteralExpr, ifObjectCreationExpr, ifSingleMemberAnnotationExpr, ifStringLiteralExpr, ifSuperExpr, ifThisExpr, ifTypeExpr, ifUnaryExpr, isAnnotationExpr, isArrayAccessExpr, isArrayCreationExpr, isArrayInitializerExpr, isAssignExpr, isBinaryExpr, isBooleanLiteralExpr, isCastExpr, isCharLiteralExpr, isClassExpr, isConditionalExpr, isDoubleLiteralExpr, isEnclosedExpr, isFieldAccessExpr, isInstanceOfExpr, isIntegerLiteralExpr, isLambdaExpr, isLiteralExpr, isLiteralStringValueExpr, isLongLiteralExpr, isMarkerAnnotationExpr, isMethodCallExpr, isMethodReferenceExpr, isNameExpr, isNormalAnnotationExpr, isNullLiteralExpr, isObjectCreationExpr, isSingleMemberAnnotationExpr, isStringLiteralExpr, isSuperExpr, isThisExpr, isTypeExpr, isUnaryExpr
addOrphanComment, containsData, customInitialization, equals, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getTokenRange, hasComment, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, toString, toString, tryAddImportToParentCompilationUnit, unregister
finalize, getClass, notify, notifyAll, wait, wait, wait
isFinal, setFinal
addModifier, removeModifier, setModifier
addAndGetAnnotation, addAndGetAnnotation, addAnnotation, addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotation, getAnnotationByClass, getAnnotationByName, isAnnotationPresent, isAnnotationPresent, setAnnotation, tryAddImportToParentCompilationUnit
addVariable, calculateMaximumCommonType, getCommonType, getElementType, getMaximumCommonType, getVariable, setVariable
getAncestorOfType
containsWithin, getBegin, getEnd, isPositionedAfter, isPositionedBefore
public VariableDeclarationExpr()
public VariableDeclarationExpr(VariableDeclarator var)
public VariableDeclarationExpr(Type type, String variableName, Modifier... modifiers)
public VariableDeclarationExpr(VariableDeclarator var, Modifier... modifiers)
public VariableDeclarationExpr(NodeList<VariableDeclarator> variables)
public VariableDeclarationExpr(EnumSet<Modifier> modifiers, NodeList<VariableDeclarator> variables)
public VariableDeclarationExpr(EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
@Generated(value="com.github.javaparser.generator.core.node.MainConstructorGenerator") public VariableDeclarationExpr(TokenRange tokenRange, EnumSet<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<VariableDeclarator> variables)
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
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<AnnotationExpr> getAnnotations()
getAnnotations
in interface NodeWithAnnotations<VariableDeclarationExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public EnumSet<Modifier> getModifiers()
getModifiers
in interface NodeWithModifiers<VariableDeclarationExpr>
Modifier
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public NodeList<VariableDeclarator> getVariables()
getVariables
in interface NodeWithVariables<VariableDeclarationExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public VariableDeclarationExpr setAnnotations(NodeList<AnnotationExpr> annotations)
setAnnotations
in interface NodeWithAnnotations<VariableDeclarationExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public VariableDeclarationExpr setModifiers(EnumSet<Modifier> modifiers)
setModifiers
in interface NodeWithModifiers<VariableDeclarationExpr>
@Generated(value="com.github.javaparser.generator.core.node.PropertyGenerator") public VariableDeclarationExpr setVariables(NodeList<VariableDeclarator> variables)
setVariables
in interface NodeWithVariables<VariableDeclarationExpr>
@Generated(value="com.github.javaparser.generator.core.node.RemoveMethodGenerator") public boolean remove(Node node)
remove
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.CloneGenerator") public VariableDeclarationExpr clone()
clone
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.GetMetaModelGenerator") public VariableDeclarationExprMetaModel getMetaModel()
getMetaModel
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.ReplaceMethodGenerator") public boolean replace(Node node, Node replacementNode)
replace
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.TypeCastingGenerator") public boolean isVariableDeclarationExpr()
isVariableDeclarationExpr
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.TypeCastingGenerator") public VariableDeclarationExpr asVariableDeclarationExpr()
asVariableDeclarationExpr
in class Expression
@Generated(value="com.github.javaparser.generator.core.node.TypeCastingGenerator") public void ifVariableDeclarationExpr(Consumer<VariableDeclarationExpr> action)
ifVariableDeclarationExpr
in class Expression
Copyright © 2007–2017. All rights reserved.