Class ReflectionFieldDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionFieldDeclaration
- All Implemented Interfaces:
AssociableToAST, HasAccessSpecifier, ResolvedDeclaration, ResolvedFieldDeclaration, ResolvedValueDeclaration
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionReflectionFieldDeclaration(Field field, TypeSolver typeSolver) privateReflectionFieldDeclaration(Field field, TypeSolver typeSolver, ResolvedType type) -
Method Summary
Modifier and TypeMethodDescriptionThe access specifier of this element.private ResolvedTypecalcType()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?replaceType(ResolvedType fieldType) 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
-
field
-
typeSolver
-
type
-
-
Constructor Details
-
ReflectionFieldDeclaration
-
ReflectionFieldDeclaration
-
-
Method Details
-
getType
Description copied from interface:ResolvedValueDeclarationType of the declaration.- Specified by:
getTypein interfaceResolvedValueDeclaration
-
calcType
-
getName
Description copied from interface:ResolvedDeclarationShould return the name or return null if the name is not available.- Specified by:
getNamein interfaceResolvedDeclaration
-
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
-
isField
public boolean isField()Description copied from interface:ResolvedDeclarationDoes this declaration represents a class field?- Specified by:
isFieldin interfaceResolvedDeclaration- Specified by:
isFieldin interfaceResolvedFieldDeclaration
-
declaringType
Description copied from interface:ResolvedFieldDeclarationThe type on which this field has been declared- Specified by:
declaringTypein interfaceResolvedFieldDeclaration
-
replaceType
-
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
-