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, waitasFieldasMethod, asParameter, asType, hasName, isMethod, isParameter, isTypepublic 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 ValueDeclarationpublic String getName()
getName in interface Declarationpublic boolean isStatic()
isStatic in interface FieldDeclarationpublic boolean isField()
isField in interface DeclarationisField in interface FieldDeclarationpublic com.github.javaparser.ast.body.FieldDeclaration getWrappedNode()
public AccessLevel accessLevel()
accessLevel in interface HasAccessLevelpublic TypeDeclaration declaringType()
declaringType in interface FieldDeclarationCopyright © 2016. All rights reserved.