public class CachedField
extends MetaProperty
| Fields inherited from class | Fields |
|---|---|
class MetaProperty |
PROPERTY_SET_PREFIX, name, type |
| Constructor and description |
|---|
CachedField(Field field) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public MethodHandle |
asAccessMethod(MethodHandles.Lookup lookup) |
|
public Field |
getCachedField() |
|
public Class |
getDeclaringClass() |
|
public int |
getModifiers()Returns the access modifiers.
|
|
public Object |
getProperty(Object object)
|
|
public boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)Checks whether the underlying field has the specified annotation. |
|
public void |
setProperty(Object object, Object newValue)Sets the property on the given object to the new value.
|
| Methods inherited from class | Name |
|---|---|
class MetaProperty |
getGetterName, getModifiers, getName, getProperty, getSetterName, getType, setProperty |
Returns the access modifiers.
Checks whether the underlying field has the specified annotation. Unlike getCachedField(), this does not trigger accessibility changes.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.