Class JavaParserVariableDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserVariableDeclaration
-
- All Implemented Interfaces:
ResolvedDeclaration,ResolvedValueDeclaration
public class JavaParserVariableDeclaration extends Object implements ResolvedValueDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserVariableDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()ResolvedTypegetType()VariableDeclaratorgetVariableDeclarator()VariableDeclarationExprgetWrappedNode()Returns the JavaParser node associated with this JavaParserFieldDeclaration.booleanisVariable()StringtoString()-
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, asType, hasName, isEnumConstant, isField, isMethod, isParameter, isType
-
-
-
-
Constructor Detail
-
JavaParserVariableDeclaration
public JavaParserVariableDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
-
-
Method Detail
-
getType
public ResolvedType getType()
- Specified by:
getTypein interfaceResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getNamein interfaceResolvedDeclaration
-
isVariable
public boolean isVariable()
- Specified by:
isVariablein interfaceResolvedDeclaration
-
getWrappedNode
public VariableDeclarationExpr getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
getVariableDeclarator
public VariableDeclarator getVariableDeclarator()
-
-