public class ReflectionFieldDeclaration extends Object implements ResolvedFieldDeclaration
Constructor and Description |
---|
ReflectionFieldDeclaration(Field field,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
AccessSpecifier |
accessSpecifier() |
ResolvedTypeDeclaration |
declaringType() |
String |
getName() |
ResolvedType |
getType() |
boolean |
isField() |
boolean |
isParameter() |
boolean |
isStatic() |
boolean |
isType() |
boolean |
isVolatile() |
ResolvedFieldDeclaration |
replaceType(ResolvedType fieldType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asField
asEnumConstant, asMethod, asParameter, asType, asTypePattern, hasName, isEnumConstant, isMethod, isTypePattern, isVariable
toAst, toAst
public ReflectionFieldDeclaration(Field field, TypeSolver typeSolver)
public ResolvedType getType()
getType
in interface ResolvedValueDeclaration
public String getName()
getName
in interface ResolvedDeclaration
public boolean isStatic()
isStatic
in interface ResolvedFieldDeclaration
public boolean isVolatile()
isVolatile
in interface ResolvedFieldDeclaration
public boolean isField()
isField
in interface ResolvedDeclaration
isField
in interface ResolvedFieldDeclaration
public ResolvedTypeDeclaration declaringType()
declaringType
in interface ResolvedFieldDeclaration
public ResolvedFieldDeclaration replaceType(ResolvedType fieldType)
public boolean isParameter()
isParameter
in interface ResolvedDeclaration
public boolean isType()
isType
in interface ResolvedDeclaration
public AccessSpecifier accessSpecifier()
accessSpecifier
in interface HasAccessSpecifier
Copyright © 2007–2024. All rights reserved.