Class ReflectionFieldDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionFieldDeclaration
-
- All Implemented Interfaces:
AssociableToAST
,HasAccessSpecifier
,ResolvedDeclaration
,ResolvedFieldDeclaration
,ResolvedValueDeclaration
public class ReflectionFieldDeclaration extends Object implements ResolvedFieldDeclaration
- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description ReflectionFieldDeclaration(Field field, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessSpecifier
accessSpecifier()
ResolvedTypeDeclaration
declaringType()
String
getName()
ResolvedType
getType()
boolean
isField()
boolean
isParameter()
boolean
isStatic()
boolean
isType()
boolean
isVolatile()
ResolvedFieldDeclaration
replaceType(ResolvedType fieldType)
-
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
-
-
-
-
Constructor Detail
-
ReflectionFieldDeclaration
public ReflectionFieldDeclaration(Field field, TypeSolver typeSolver)
-
-
Method Detail
-
getType
public ResolvedType getType()
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceResolvedFieldDeclaration
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatile
in interfaceResolvedFieldDeclaration
-
isField
public boolean isField()
- Specified by:
isField
in interfaceResolvedDeclaration
- Specified by:
isField
in interfaceResolvedFieldDeclaration
-
declaringType
public ResolvedTypeDeclaration declaringType()
- Specified by:
declaringType
in interfaceResolvedFieldDeclaration
-
replaceType
public ResolvedFieldDeclaration replaceType(ResolvedType fieldType)
-
isParameter
public boolean isParameter()
- Specified by:
isParameter
in interfaceResolvedDeclaration
-
isType
public boolean isType()
- Specified by:
isType
in interfaceResolvedDeclaration
-
accessSpecifier
public AccessSpecifier accessSpecifier()
- Specified by:
accessSpecifier
in interfaceHasAccessSpecifier
-
-