public class JavaParserVariableDeclaration extends Object implements ResolvedValueDeclaration, AssociableToAST<VariableDeclarationExpr>
Constructor and Description |
---|
JavaParserVariableDeclaration(VariableDeclarator variableDeclarator,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
ResolvedType |
getType() |
VariableDeclarator |
getVariableDeclarator() |
VariableDeclarationExpr |
getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.
|
boolean |
isVariable() |
Optional<VariableDeclarationExpr> |
toAst() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType
public JavaParserVariableDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
public ResolvedType getType()
getType
in interface ResolvedValueDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public boolean isVariable()
isVariable
in interface ResolvedDeclaration
public VariableDeclarationExpr getWrappedNode()
public VariableDeclarator getVariableDeclarator()
public Optional<VariableDeclarationExpr> toAst()
toAst
in interface AssociableToAST<VariableDeclarationExpr>
Copyright © 2007–2022. All rights reserved.