public class JavaParserFieldDeclaration extends Object implements ResolvedFieldDeclaration
Constructor and Description |
---|
JavaParserFieldDeclaration(VariableDeclarator variableDeclarator,
TypeSolver typeSolver) |
Modifier and Type | Method and 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() |
boolean |
isVolatile() |
Optional<Node> |
toAst() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asField
asEnumConstant, asMethod, asParameter, asPattern, asType, hasName, isEnumConstant, isMethod, isParameter, isPattern, isType, isVariable
toAst
public JavaParserFieldDeclaration(VariableDeclarator variableDeclarator, TypeSolver typeSolver)
public ResolvedType getType()
getType
in interface ResolvedValueDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public boolean isStatic()
isStatic
in interface ResolvedFieldDeclaration
public boolean isVolatile()
isVolatile
in interface ResolvedFieldDeclaration
public boolean isField()
isField
in interface ResolvedDeclaration
isField
in interface ResolvedFieldDeclaration
public FieldDeclaration getWrappedNode()
public VariableDeclarator getVariableDeclarator()
public AccessSpecifier accessSpecifier()
accessSpecifier
in interface HasAccessSpecifier
public ResolvedTypeDeclaration declaringType()
declaringType
in interface ResolvedFieldDeclaration
public Optional<Node> toAst()
toAst
in interface AssociableToAST
Copyright © 2007–2023. All rights reserved.