Class JavassistFieldDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.javassistmodel.JavassistFieldDeclaration
- All Implemented Interfaces:
AssociableToAST, HasAccessSpecifier, ResolvedDeclaration, ResolvedFieldDeclaration, ResolvedValueDeclaration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe access specifier of this element.The type on which this field has been declaredgetName()Should return the name or return null if the name is not available.getType()Type of the declaration.booleanisField()Does this declaration represents a class field?booleanDoes this declaration represents a method parameter?booleanisStatic()Is the field static?booleanisType()Does this declaration represents a type?booleanIs the field volatile?Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AssociableToAST
toAst, toAstMethods inherited from interface ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isMethod, isTypePattern, isVariableMethods inherited from interface ResolvedFieldDeclaration
asField
-
Field Details
-
ctField
private javassist.CtField ctField -
typeSolver
-
-
Constructor Details
-
JavassistFieldDeclaration
-
-
Method Details
-
getType
Description copied from interface:ResolvedValueDeclarationType of the declaration.- Specified by:
getTypein interfaceResolvedValueDeclaration
-
isStatic
public boolean isStatic()Description copied from interface:ResolvedFieldDeclarationIs the field static?- Specified by:
isStaticin interfaceResolvedFieldDeclaration
-
isVolatile
public boolean isVolatile()Description copied from interface:ResolvedFieldDeclarationIs the field volatile?- Specified by:
isVolatilein interfaceResolvedFieldDeclaration
-
getName
Description copied from interface:ResolvedDeclarationShould return the name or return null if the name is not available.- Specified by:
getNamein interfaceResolvedDeclaration
-
isField
public boolean isField()Description copied from interface:ResolvedDeclarationDoes this declaration represents a class field?- Specified by:
isFieldin interfaceResolvedDeclaration- Specified by:
isFieldin interfaceResolvedFieldDeclaration
-
isParameter
public boolean isParameter()Description copied from interface:ResolvedDeclarationDoes this declaration represents a method parameter?- Specified by:
isParameterin interfaceResolvedDeclaration
-
isType
public boolean isType()Description copied from interface:ResolvedDeclarationDoes this declaration represents a type?- Specified by:
isTypein interfaceResolvedDeclaration
-
accessSpecifier
Description copied from interface:HasAccessSpecifierThe access specifier of this element.- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
declaringType
Description copied from interface:ResolvedFieldDeclarationThe type on which this field has been declared- Specified by:
declaringTypein interfaceResolvedFieldDeclaration
-