Class JavaParserVariableDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserVariableDeclaration
-
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.ResolvedDeclaration,com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
public class JavaParserVariableDeclaration extends Object implements com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserVariableDeclaration(com.github.javaparser.ast.body.VariableDeclarator variableDeclarator, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()com.github.javaparser.resolution.types.ResolvedTypegetType()com.github.javaparser.ast.body.VariableDeclaratorgetVariableDeclarator()com.github.javaparser.ast.expr.VariableDeclarationExprgetWrappedNode()Returns the JavaParser node associated with this JavaParserFieldDeclaration.booleanisVariable()StringtoString()
-
-
-
Method Detail
-
getType
public com.github.javaparser.resolution.types.ResolvedType getType()
- Specified by:
getTypein interfacecom.github.javaparser.resolution.declarations.ResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isVariable
public boolean isVariable()
- Specified by:
isVariablein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
getWrappedNode
public com.github.javaparser.ast.expr.VariableDeclarationExpr getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
getVariableDeclarator
public com.github.javaparser.ast.body.VariableDeclarator getVariableDeclarator()
-
-