Class ReflectionFieldDeclaration
java.lang.Object
com.github.javaparser.symbolsolver.reflectionmodel.ReflectionFieldDeclaration
- All Implemented Interfaces:
com.github.javaparser.resolution.declarations.AssociableToAST, com.github.javaparser.resolution.declarations.HasAccessSpecifier, com.github.javaparser.resolution.declarations.ResolvedDeclaration, com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration, com.github.javaparser.resolution.declarations.ResolvedValueDeclaration
public class ReflectionFieldDeclaration
extends Object
implements com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
- Author:
- Federico Tomassetti
-
Constructor Summary
ConstructorsConstructorDescriptionReflectionFieldDeclaration(Field field, com.github.javaparser.resolution.TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.javaparser.ast.AccessSpecifiercom.github.javaparser.resolution.declarations.ResolvedTypeDeclarationgetName()com.github.javaparser.resolution.types.ResolvedTypegetType()booleanisField()booleanbooleanisStatic()booleanisType()booleancom.github.javaparser.resolution.declarations.ResolvedFieldDeclarationreplaceType(com.github.javaparser.resolution.types.ResolvedType fieldType) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAstMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asMethod, asParameter, asType, asTypePattern, hasName, isArrayLength, isEnumConstant, isMethod, isTypePattern, isVariableMethods inherited from interface com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
asField
-
Constructor Details
-
ReflectionFieldDeclaration
public ReflectionFieldDeclaration(Field field, com.github.javaparser.resolution.TypeSolver typeSolver)
-
-
Method Details
-
getType
public com.github.javaparser.resolution.types.ResolvedType getType()- Specified by:
getTypein interfacecom.github.javaparser.resolution.declarations.ResolvedValueDeclaration
-
getName
- Specified by:
getNamein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
isVolatile
public boolean isVolatile()- Specified by:
isVolatilein interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
isField
public boolean isField()- Specified by:
isFieldin interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration- Specified by:
isFieldin interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
declaringType
public com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration declaringType()- Specified by:
declaringTypein interfacecom.github.javaparser.resolution.declarations.ResolvedFieldDeclaration
-
replaceType
public com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration replaceType(com.github.javaparser.resolution.types.ResolvedType fieldType) -
isParameter
public boolean isParameter()- Specified by:
isParameterin interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
isType
public boolean isType()- Specified by:
isTypein interfacecom.github.javaparser.resolution.declarations.ResolvedDeclaration
-
accessSpecifier
public com.github.javaparser.ast.AccessSpecifier accessSpecifier()- Specified by:
accessSpecifierin interfacecom.github.javaparser.resolution.declarations.HasAccessSpecifier
-