public class JavaParserFieldDeclaration extends Object implements FieldDeclaration
Constructor and Description |
---|
JavaParserFieldDeclaration(com.github.javaparser.ast.body.EnumConstantDeclaration enumConstantDeclaration,
TypeSolver typeSolver) |
JavaParserFieldDeclaration(com.github.javaparser.ast.body.VariableDeclarator variableDeclarator,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
AccessLevel |
accessLevel() |
TypeDeclaration |
declaringType() |
String |
getName() |
Type |
getType() |
com.github.javaparser.ast.body.FieldDeclaration |
getWrappedNode()
Returns the JavaParser node associated with this JavaParserFieldDeclaration.
|
boolean |
isField() |
boolean |
isStatic() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asField
asMethod, asParameter, asType, hasName, isMethod, isParameter, isType
public JavaParserFieldDeclaration(com.github.javaparser.ast.body.VariableDeclarator variableDeclarator, TypeSolver typeSolver)
public JavaParserFieldDeclaration(com.github.javaparser.ast.body.EnumConstantDeclaration enumConstantDeclaration, TypeSolver typeSolver)
public Type getType()
getType
in interface ValueDeclaration
public String getName()
getName
in interface Declaration
public boolean isStatic()
isStatic
in interface FieldDeclaration
public boolean isField()
isField
in interface Declaration
isField
in interface FieldDeclaration
public com.github.javaparser.ast.body.FieldDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel
in interface HasAccessLevel
public TypeDeclaration declaringType()
declaringType
in interface FieldDeclaration
Copyright © 2016. All rights reserved.