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 String
getName()
ResolvedType
getType()
VariableDeclarator
getVariableDeclarator()
VariableDeclarationExpr
getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.boolean
isVariable()
String
toString()
-
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:
getType
in interfaceResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
-
isVariable
public boolean isVariable()
- Specified by:
isVariable
in 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()
-
-