Class JavaParserVariableDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserVariableDeclaration
- All Implemented Interfaces:
AssociableToAST<VariableDeclarationExpr>
,ResolvedDeclaration
,ResolvedValueDeclaration
public class JavaParserVariableDeclaration
extends Object
implements ResolvedValueDeclaration, AssociableToAST<VariableDeclarationExpr>
- Author:
- Federico Tomassetti
-
Constructor Summary
ConstructorsConstructorDescriptionJavaParserVariableDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isPattern, isType
-
Constructor Details
-
JavaParserVariableDeclaration
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
getName
- Specified by:
getName
in interfaceResolvedDeclaration
-
isVariable
public boolean isVariable()- Specified by:
isVariable
in interfaceResolvedDeclaration
-
getWrappedNode
Returns the JavaParser node associated with this JavaParserFieldDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
getVariableDeclarator
-
toString
-
toAst
- Specified by:
toAst
in interfaceAssociableToAST<VariableDeclarationExpr>
-