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, waitasEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isTypepublic JavaParserVariableDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
public ResolvedType getType()
getType in interface ResolvedValueDeclarationpublic String getName()
getName in interface ResolvedDeclarationpublic boolean isVariable()
isVariable in interface ResolvedDeclarationpublic VariableDeclarationExpr getWrappedNode()
public VariableDeclarator getVariableDeclarator()
public Optional<VariableDeclarationExpr> toAst()
toAst in interface AssociableToAST<VariableDeclarationExpr>Copyright © 2007–2022. All rights reserved.