Class JavassistFieldDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javassistmodel.JavassistFieldDeclaration
-
- All Implemented Interfaces:
AssociableToAST,HasAccessSpecifier,ResolvedDeclaration,ResolvedFieldDeclaration,ResolvedValueDeclaration
public class JavassistFieldDeclaration extends java.lang.Object implements ResolvedFieldDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private javassist.CtFieldctFieldprivate TypeSolvertypeSolver
-
Constructor Summary
Constructors Constructor Description JavassistFieldDeclaration(javassist.CtField ctField, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessSpecifieraccessSpecifier()The access specifier of this element.ResolvedTypeDeclarationdeclaringType()The type on which this field has been declaredjava.lang.StringgetName()Should return the name or return null if the name is not available.ResolvedTypegetType()Type of the declaration.booleanisField()Does this declaration represents a class field?booleanisParameter()Does this declaration represents a method parameter?booleanisStatic()Is the field static?booleanisType()Does this declaration represents a type?booleanisVolatile()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 Detail
-
ctField
private javassist.CtField ctField
-
typeSolver
private TypeSolver typeSolver
-
-
Constructor Detail
-
JavassistFieldDeclaration
public JavassistFieldDeclaration(javassist.CtField ctField, TypeSolver typeSolver)
-
-
Method Detail
-
getType
public ResolvedType 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
public java.lang.String 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
public AccessSpecifier accessSpecifier()
Description copied from interface:HasAccessSpecifierThe access specifier of this element.- Specified by:
accessSpecifierin interfaceHasAccessSpecifier
-
declaringType
public ResolvedTypeDeclaration declaringType()
Description copied from interface:ResolvedFieldDeclarationThe type on which this field has been declared- Specified by:
declaringTypein interfaceResolvedFieldDeclaration
-
-