Class JavaParserFieldDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.declarations.JavaParserFieldDeclaration
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST, 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
ConstructorsConstructorDescriptionJavaParserFieldDeclaration(com.github.javaparser.ast.body.VariableDeclarator variableDeclarator, com.github.javaparser.resolution.TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.javaparser.ast.AccessSpecifiercom.github.javaparser.resolution.declarations.ResolvedTypeDeclarationgetName()com.github.javaparser.resolution.types.ResolvedTypegetType()com.github.javaparser.ast.body.VariableDeclaratorcom.github.javaparser.ast.body.FieldDeclarationReturns the JavaParser node associated with this JavaParserFieldDeclaration.booleanisField()booleanisStatic()booleanOptional<com.github.javaparser.ast.Node> toAst()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAstMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asType, asTypePattern, hasName, isArrayLength, isEnumConstant, isMethod, isParameter, isType, isTypePattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
asField
-
Constructor Details
-
JavaParserFieldDeclaration
public JavaParserFieldDeclaration(com.github.javaparser.ast.body.VariableDeclarator variableDeclarator, com.github.javaparser.resolution.TypeSolver typeSolver)
-
-
Method Details
-
getType
public com.github.javaparser.resolution.types.ResolvedType getType()- Specified by:
getTypein interfacecom.github.javaparser.resolution.declarations.ResolvedValueDeclaration
-
getName
- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
isVolatile
public boolean isVolatile()- Specified by:
isVolatilein interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
isField
public boolean isField()- Specified by:
isFieldin interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration- Specified by:
isFieldin 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() -
toString
-
accessSpecifier
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()- Specified by:
accessSpecifierin interfacecom.github.javaparser.resolution.declarations.HasAccessSpecifier
-
declaringType
public com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration declaringType()- Specified by:
declaringTypein interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
toAst
- Specified by:
toAstin interfacecom.github.javaparser.resolution.declarations.AssociableToAST
-