BeansLinker
. Most of the functionality is provided by the AbstractJavaLinker
superclass; this
class adds length and element operations for arrays and collections.
Modifier and Type | Class and Description |
---|---|
private static class | BeanLinker.
Contains methods to adapt an item getter/setter method handle to the requested type, optionally binding it to a fixed key first. |
private static enum | |
private static class |
Modifier and Type | Field and Description |
---|---|
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final Object | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle | |
private static final MethodHandle |
Access | Constructor and Description |
---|---|
pack-priv |
CONTAINS_MAP | back to summary |
---|---|
private static final MethodHandle CONTAINS_MAP |
GET_ARRAY_LENGTH | back to summary |
---|---|
private static final MethodHandle GET_ARRAY_LENGTH |
GET_COLLECTION_LENGTH | back to summary |
---|---|
private static final MethodHandle GET_COLLECTION_LENGTH |
GET_LIST_ELEMENT | back to summary |
---|---|
private static final MethodHandle GET_LIST_ELEMENT |
GET_MAP_ELEMENT | back to summary |
---|---|
private static final MethodHandle GET_MAP_ELEMENT |
GET_MAP_LENGTH | back to summary |
---|---|
private static final MethodHandle GET_MAP_LENGTH |
INVALID_NAME | back to summary |
---|---|
private static final Object INVALID_NAME |
LIST_GUARD | back to summary |
---|---|
private static final MethodHandle LIST_GUARD |
MAP_GUARD | back to summary |
---|---|
private static final MethodHandle MAP_GUARD |
NO_OP_1 | back to summary |
---|---|
private static final MethodHandle NO_OP_1 |
NO_OP_2 | back to summary |
---|---|
private static final MethodHandle NO_OP_2 |
NO_OP_3 | back to summary |
---|---|
private static final MethodHandle NO_OP_3 |
NULL_GETTER_1 | back to summary |
---|---|
private static final MethodHandle NULL_GETTER_1 |
NULL_GETTER_2 | back to summary |
---|---|
private static final MethodHandle NULL_GETTER_2 |
PUT_MAP_ELEMENT | back to summary |
---|---|
private static final MethodHandle PUT_MAP_ELEMENT |
RANGE_CHECK_ARRAY | back to summary |
---|---|
private static final MethodHandle RANGE_CHECK_ARRAY |
RANGE_CHECK_LIST | back to summary |
---|---|
private static final MethodHandle RANGE_CHECK_LIST |
REMOVE_LIST_ELEMENT | back to summary |
---|---|
private static final MethodHandle REMOVE_LIST_ELEMENT |
REMOVE_MAP_ELEMENT | back to summary |
---|---|
private static final MethodHandle REMOVE_MAP_ELEMENT |
SET_LIST_ELEMENT | back to summary |
---|---|
private static final MethodHandle SET_LIST_ELEMENT |
BeanLinker | back to summary |
---|---|
pack-priv BeanLinker(final Class<?> clazz) |
assertParameterCount | back to summary |
---|---|
private static void assertParameterCount(final CallSiteDescriptor descriptor, final int paramCount) Hides jdk. |
canLinkType | back to summary |
---|---|
public boolean canLinkType(final Class<?> type) Implements jdk. Doc from jdk. Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type. |
convertKeyToInteger | back to summary |
---|---|
private static Integer convertKeyToInteger(final Object fixedKey, final LinkerServices linkerServices) throws Exception |
createFacetIntrospector | back to summary |
---|---|
pack-priv FacetIntrospector createFacetIntrospector() Implements abstract jdk.
|
createGuardedInvocationComponentAsType | back to summary |
---|---|
private static GuardedInvocationComponent createGuardedInvocationComponentAsType(final MethodHandle invocation, final MethodType fromType, final LinkerServices linkerServices) |
createInternalFilteredGuardedInvocationComponent | back to summary |
---|---|
private static GuardedInvocationComponent createInternalFilteredGuardedInvocationComponent(final MethodHandle invocation, final LinkerServices linkerServices) |
createInternalFilteredGuardedInvocationComponent | back to summary |
---|---|
private static GuardedInvocationComponent createInternalFilteredGuardedInvocationComponent(final MethodHandle invocation, final MethodHandle guard, final Class<?> validatorClass, final GuardedInvocationComponent. |
dropObjectArguments | back to summary |
---|---|
private static MethodHandle dropObjectArguments(final MethodHandle m, final int n) |
findRangeCheck | back to summary |
---|---|
private static MethodHandle findRangeCheck(final Class<?> collectionType) |
getConstructorMethod | back to summary |
---|---|
pack-priv SingleDynamicMethod getConstructorMethod(final String signature) Implements abstract jdk.
|
getElementGetter | back to summary |
---|---|
private GuardedInvocationComponent getElementGetter(final AbstractJavaLinker. |
getElementRemover | back to summary |
---|---|
private GuardedInvocationComponent getElementRemover(final AbstractJavaLinker. |
getElementSetter | back to summary |
---|---|
private GuardedInvocationComponent getElementSetter(final AbstractJavaLinker. |
getGuardedInvocationComponent | back to summary |
---|---|
protected GuardedInvocationComponent getGuardedInvocationComponent(final AbstractJavaLinker. Overrides jdk.
|
getTypedName | back to summary |
---|---|
private static Object getTypedName(final Object name, final boolean isMap, final LinkerServices linkerServices) throws Exception |
guardComponentWithRangeCheck | back to summary |
---|---|
private static GuardedInvocationComponent guardComponentWithRangeCheck(final BeanLinker. |
guardedInvocationComponentAndCollectionType | back to summary |
---|---|
private BeanLinker. |
noOp | back to summary |
---|---|
private static void noOp()
|
rangeCheck | back to summary |
---|---|
private static boolean rangeCheck(final Object array, final Object index)
|
rangeCheck | back to summary |
---|---|
private static boolean rangeCheck(final List<?> list, final Object index)
|
Modifier and Type | Field and Description |
---|---|
private final Object | |
private final LinkerServices | |
private final MethodType |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv MethodHandle | |
pack-priv MethodHandle | |
private MethodHandle | |
pack-priv MethodHandle |
fixedKey | back to summary |
---|---|
private final Object fixedKey |
linkerServices | back to summary |
---|---|
private final LinkerServices linkerServices |
methodType | back to summary |
---|---|
private final MethodType methodType |
Binder | back to summary |
---|---|
pack-priv Binder(final LinkerServices linkerServices, final MethodType methodType, final Object fixedKey) |
bind | back to summary |
---|---|
pack-priv MethodHandle bind(final MethodHandle handle) |
bindTest | back to summary |
---|---|
pack-priv MethodHandle bindTest(final MethodHandle handle) |
bindToFixedKey | back to summary |
---|---|
private MethodHandle bindToFixedKey(final MethodHandle handle) |
convertArgToNumber | back to summary |
---|---|
pack-priv MethodHandle convertArgToNumber(final MethodHandle mh) |
Modifier and Type | Field and Description |
---|---|
public static final BeanLinker. | |
public static final BeanLinker. | |
public static final BeanLinker. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static BeanLinker. | |
public static BeanLinker. |
ARRAY | back to summary |
---|---|
public static final BeanLinker. |
LIST | back to summary |
---|---|
public static final BeanLinker. |
MAP | back to summary |
---|---|
public static final BeanLinker. |
CollectionType | back to summary |
---|---|
private CollectionType() |
valueOf | back to summary |
---|---|
public static BeanLinker. |
values | back to summary |
---|---|
public static BeanLinker. |
Modifier and Type | Field and Description |
---|---|
pack-priv final BeanLinker. | |
pack-priv final GuardedInvocationComponent |
Access | Constructor and Description |
---|---|
pack-priv | GuardedInvocationComponentAndCollectionType(final GuardedInvocationComponent gic, final BeanLinker.
|
collectionType | back to summary |
---|---|
pack-priv final BeanLinker. |
gic | back to summary |
---|---|
pack-priv final GuardedInvocationComponent gic |
GuardedInvocationComponentAndCollectionType | back to summary |
---|---|
pack-priv GuardedInvocationComponentAndCollectionType(final GuardedInvocationComponent gic, final BeanLinker. |