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 AccessSpecifieraccessSpecifier()ResolvedTypeDeclarationdeclaringType()StringgetName()ResolvedTypegetType()VariableDeclaratorgetVariableDeclarator()FieldDeclarationgetWrappedNode()Returns the JavaParser node associated with this JavaParserFieldDeclaration.booleanisField()booleanisStatic()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, 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:
getTypein interfaceResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getNamein interfaceResolvedDeclaration
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceResolvedFieldDeclaration
-
isField
public boolean isField()
- Specified by:
isFieldin interfaceResolvedDeclaration- Specified by:
isFieldin 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:
accessSpecifierin interfaceHasAccessSpecifier
-
declaringType
public ResolvedTypeDeclaration declaringType()
- Specified by:
declaringTypein interfaceResolvedFieldDeclaration
-
-