APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.dynalink.beans

pack-priv abstract Class FacetIntrospector

extends Object
Class Inheritance
Known Direct Subclasses
jdk.dynalink.beans.StaticClassIntrospector, jdk.dynalink.beans.BeanIntrospector
Imports
java.lang.invoke.MethodHandle, java.lang.reflect.Field, .Member, .Method, .Modifier, java.util.ArrayList, .Collection, .Collections, .Map, jdk.dynalink.linker.support.Lookup

Base for classes that expose class field and method information to an AbstractJavaLinker. There are subclasses for instance (bean) and static facet of a class.

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final boolean
private final boolean
protected final AccessibleMembersLookup

Constructor Summary

AccessConstructor and Description
pack-priv
FacetIntrospector(final Class<?> clazz, final boolean instance)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract MethodHandle

Returns:

the edited method handle.
editMethodHandle
(MethodHandle
the method handle to edit.
mh
)

Returns an edited method handle.

pack-priv Collection<Field>

Returns:

the fields for the class facet.
getFields
()

Returns the fields for the class facet.

pack-priv abstract Map<String, MethodHandle>

Returns:

getters for inner classes.
getInnerClassGetters
()

Returns getters for inner classes.

pack-priv Collection<Method>

Returns:

all the methods in the facet.
getMethods
()

Returns all the methods in the facet.

pack-priv abstract Collection<Method>

Returns:

getter methods for record components.
getRecordComponentGetters
()

Returns getter methods for record components.

pack-priv boolean
pack-priv MethodHandle
unreflectGetter(final Field field)

pack-priv MethodHandle
unreflectSetter(final Field field)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clazzback to summary
private final Class<?> clazz
instanceback to summary
private final boolean instance
isRestrictedback to summary
private final boolean isRestricted
membersLookupback to summary
protected final AccessibleMembersLookup membersLookup

Constructor Detail

FacetIntrospectorback to summary
pack-priv FacetIntrospector(final Class<?> clazz, final boolean instance)

Method Detail

editMethodHandleback to summary
pack-priv abstract MethodHandle editMethodHandle(MethodHandle mh)

Returns an edited method handle. A facet might need to edit an unreflected method handle before it is usable with the facet. By default, returns the passed method handle unchanged. The class' static facet will introduce a dropArguments.

Parameters
mh:MethodHandle

the method handle to edit.

Returns:MethodHandle

the edited method handle.

getFieldsback to summary
pack-priv Collection<Field> getFields()

Returns the fields for the class facet.

Returns:Collection<Field>

the fields for the class facet.

getInnerClassGettersback to summary
pack-priv abstract Map<String, MethodHandle> getInnerClassGetters()

Returns getters for inner classes.

Returns:Map<String, MethodHandle>

getters for inner classes.

getMethodsback to summary
pack-priv Collection<Method> getMethods()

Returns all the methods in the facet.

Returns:Collection<Method>

all the methods in the facet.

getRecordComponentGettersback to summary
pack-priv abstract Collection<Method> getRecordComponentGetters()

Returns getter methods for record components.

Returns:Collection<Method>

getter methods for record components.

isAccessibleback to summary
pack-priv boolean isAccessible(final Member m)
unreflectGetterback to summary
pack-priv MethodHandle unreflectGetter(final Field field)
unreflectSetterback to summary
pack-priv MethodHandle unreflectSetter(final Field field)