Class JavaParserFieldDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration
-
- All Implemented Interfaces:
HasAccessSpecifier
,ResolvedDeclaration
,ResolvedFieldDeclaration
,ResolvedValueDeclaration
public class JavaParserFieldDeclaration extends Object implements ResolvedFieldDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserFieldDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessSpecifier
accessSpecifier()
ResolvedTypeDeclaration
declaringType()
String
getName()
ResolvedType
getType()
VariableDeclarator
getVariableDeclarator()
FieldDeclaration
getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.boolean
isField()
boolean
isStatic()
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, asMethod, asParameter, asType, hasName, isEnumConstant, isMethod, isParameter, isType, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
asField
-
-
-
-
Constructor Detail
-
JavaParserFieldDeclaration
public JavaParserFieldDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
-
-
Method Detail
-
getType
public ResolvedType getType()
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceResolvedFieldDeclaration
-
isField
public boolean isField()
- Specified by:
isField
in interfaceResolvedDeclaration
- Specified by:
isField
in interfaceResolvedFieldDeclaration
-
getWrappedNode
public FieldDeclaration getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.- Returns:
- A visitable JavaParser node wrapped by this object.
-
getVariableDeclarator
public VariableDeclarator getVariableDeclarator()
-
accessSpecifier
public AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifier
in interfaceHasAccessSpecifier
-
declaringType
public ResolvedTypeDeclaration declaringType()
- Specified by:
declaringType
in interfaceResolvedFieldDeclaration
-
-