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.boolean
isField()
Does this declaration represents a class field?boolean
Does this declaration represents a method parameter?boolean
isStatic()
Is the field static?boolean
isType()
Does this declaration represents a type?boolean
Is the field volatile?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isMethod, isTypePattern, isVariable
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
asField
-
Field Details
-
ctField
private javassist.CtField ctField -
typeSolver
-
-
Constructor Details
-
JavassistFieldDeclaration
-
-
Method Details
-
getType
Description copied from interface:ResolvedValueDeclaration
Type of the declaration.- Specified by:
getType
in interfaceResolvedValueDeclaration
-
isStatic
public boolean isStatic()Description copied from interface:ResolvedFieldDeclaration
Is the field static?- Specified by:
isStatic
in interfaceResolvedFieldDeclaration
-
isVolatile
public boolean isVolatile()Description copied from interface:ResolvedFieldDeclaration
Is the field volatile?- Specified by:
isVolatile
in interfaceResolvedFieldDeclaration
-
getName
Description copied from interface:ResolvedDeclaration
Should return the name or return null if the name is not available.- Specified by:
getName
in interfaceResolvedDeclaration
-
isField
public boolean isField()Description copied from interface:ResolvedDeclaration
Does this declaration represents a class field?- Specified by:
isField
in interfaceResolvedDeclaration
- Specified by:
isField
in interfaceResolvedFieldDeclaration
-
isParameter
public boolean isParameter()Description copied from interface:ResolvedDeclaration
Does this declaration represents a method parameter?- Specified by:
isParameter
in interfaceResolvedDeclaration
-
isType
public boolean isType()Description copied from interface:ResolvedDeclaration
Does this declaration represents a type?- Specified by:
isType
in interfaceResolvedDeclaration
-
accessSpecifier
Description copied from interface:HasAccessSpecifier
The access specifier of this element.- Specified by:
accessSpecifier
in interfaceHasAccessSpecifier
-
declaringType
Description copied from interface:ResolvedFieldDeclaration
The type on which this field has been declared- Specified by:
declaringType
in interfaceResolvedFieldDeclaration
-