Class JavaParserFieldDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration
-
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.HasAccessSpecifier
,com.github.javaparser.resolution.declarations.ResolvedDeclaration
,com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
,com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
public class JavaParserFieldDeclaration extends Object implements com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description JavaParserFieldDeclaration(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 com.github.javaparser.ast.Modifier.Keyword
accessSpecifier()
com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration
declaringType()
String
getName()
com.github.javaparser.resolution.types.ResolvedType
getType()
com.github.javaparser.ast.body.VariableDeclarator
getVariableDeclarator()
com.github.javaparser.ast.body.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
-
-
-
-
Method Detail
-
getType
public com.github.javaparser.resolution.types.ResolvedType getType()
- Specified by:
getType
in interfacecom.github.javaparser.resolution.declarations.ResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
isField
public boolean isField()
- Specified by:
isField
in interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
- Specified by:
isField
in interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
getWrappedNode
public com.github.javaparser.ast.body.FieldDeclaration 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()
-
accessSpecifier
public com.github.javaparser.ast.Modifier.Keyword accessSpecifier()
- Specified by:
accessSpecifier
in interfacecom.github.javaparser.resolution.declarations.HasAccessSpecifier
-
declaringType
public com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration declaringType()
- Specified by:
declaringType
in interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
-