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, waitMethods 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:
getTypein interfaceResolvedValueDeclaration
-
getName
- Specified by:
getNamein interfaceResolvedDeclaration
-
isVariable
public boolean isVariable()- Specified by:
isVariablein interfaceResolvedDeclaration
-
getWrappedNode
Returns the JavaParser node associated with this JavaParserFieldDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
getVariableDeclarator
-
toString
-
toAst
- Specified by:
toAstin interfaceAssociableToAST<VariableDeclarationExpr>
-