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

pack-priv Class GuardedInvocationComponent

extends Object
Class Inheritance
Imports
java.lang.invoke.MethodHandle, jdk.dynalink.linker.GuardedInvocation

Represents one component for a GuardedInvocation of a potentially multi-namespace operation of an AbstractJavaLinker. In addition to holding a guarded invocation, it holds semantic information about its guard. All guards produced in the AbstractJavaLinker are either "Class.isInstance()" or "getClass() == clazz" expressions. This allows choosing the most restrictive guard as the guard for the composition of two components.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
private static class

Field Summary

Modifier and TypeField and Description
private final GuardedInvocation
private final GuardedInvocationComponent.Validator

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
pack-priv
GuardedInvocationComponent(final MethodHandle invocation, final MethodHandle guard, final Class<?> validatorClass, final GuardedInvocationComponent.ValidationType validationType)

pack-priv
GuardedInvocationComponent(final GuardedInvocation guardedInvocation, final Class<?> validatorClass, final GuardedInvocationComponent.ValidationType validationType)

private
private

Method Summary

Modifier and TypeMethod and Description
pack-priv GuardedInvocationComponent
compose(final MethodHandle compositeInvocation, final MethodHandle otherGuard, final Class<?> otherValidatorClass, final GuardedInvocationComponent.ValidationType otherValidationType)

pack-priv GuardedInvocation
pack-priv GuardedInvocationComponent.ValidationType
pack-priv Class<?>
pack-priv GuardedInvocationComponent
replaceInvocation(final MethodHandle newInvocation)

pack-priv GuardedInvocationComponent
replaceInvocation(final MethodHandle newInvocation, final MethodHandle newGuard)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

guardedInvocationback to summary
private final GuardedInvocation guardedInvocation
validatorback to summary
private final GuardedInvocationComponent.Validator validator

Constructor Detail

GuardedInvocationComponentback to summary
pack-priv GuardedInvocationComponent(final MethodHandle invocation)
GuardedInvocationComponentback to summary
pack-priv GuardedInvocationComponent(final MethodHandle invocation, final MethodHandle guard, final GuardedInvocationComponent.ValidationType validationType)
GuardedInvocationComponentback to summary
pack-priv GuardedInvocationComponent(final MethodHandle invocation, final MethodHandle guard, final Class<?> validatorClass, final GuardedInvocationComponent.ValidationType validationType)
GuardedInvocationComponentback to summary
pack-priv GuardedInvocationComponent(final GuardedInvocation guardedInvocation, final Class<?> validatorClass, final GuardedInvocationComponent.ValidationType validationType)
GuardedInvocationComponentback to summary
private GuardedInvocationComponent(final MethodHandle invocation, final MethodHandle guard, final GuardedInvocationComponent.Validator validator)
GuardedInvocationComponentback to summary
private GuardedInvocationComponent(final GuardedInvocation guardedInvocation, final GuardedInvocationComponent.Validator validator)

Method Detail

composeback to summary
pack-priv GuardedInvocationComponent compose(final MethodHandle compositeInvocation, final MethodHandle otherGuard, final Class<?> otherValidatorClass, final GuardedInvocationComponent.ValidationType otherValidationType)
getGuardedInvocationback to summary
pack-priv GuardedInvocation getGuardedInvocation()
getValidationTypeback to summary
pack-priv GuardedInvocationComponent.ValidationType getValidationType()
getValidatorClassback to summary
pack-priv Class<?> getValidatorClass()
replaceInvocationback to summary
pack-priv GuardedInvocationComponent replaceInvocation(final MethodHandle newInvocation)
replaceInvocationback to summary
pack-priv GuardedInvocationComponent replaceInvocation(final MethodHandle newInvocation, final MethodHandle newGuard)
jdk.dynalink.beans back to summary

pack-priv final Enum GuardedInvocationComponent.ValidationType

extends Enum<GuardedInvocationComponent.ValidationType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final GuardedInvocationComponent.ValidationType
public static final GuardedInvocationComponent.ValidationType
public static final GuardedInvocationComponent.ValidationType
public static final GuardedInvocationComponent.ValidationType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GuardedInvocationComponent.ValidationType
public static GuardedInvocationComponent.ValidationType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXACT_CLASSback to summary
public static final GuardedInvocationComponent.ValidationType EXACT_CLASS
INSTANCE_OFback to summary
public static final GuardedInvocationComponent.ValidationType INSTANCE_OF
IS_ARRAYback to summary
public static final GuardedInvocationComponent.ValidationType IS_ARRAY
NONEback to summary
public static final GuardedInvocationComponent.ValidationType NONE

Constructor Detail

ValidationTypeback to summary
private ValidationType()

Method Detail

valueOfback to summary
public static GuardedInvocationComponent.ValidationType valueOf(String name)
valuesback to summary
public static GuardedInvocationComponent.ValidationType[] values()
jdk.dynalink.beans back to summary

private Class GuardedInvocationComponent.Validator

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final GuardedInvocationComponent.ValidationType
pack-priv final Class<?>

Constructor Summary

AccessConstructor and Description
pack-priv
Validator(final Class<?> validatorClass, final GuardedInvocationComponent.ValidationType validationType)

Method Summary

Modifier and TypeMethod and Description
pack-priv GuardedInvocationComponent.Validator
private boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

validationTypeback to summary
pack-priv final GuardedInvocationComponent.ValidationType validationType
validatorClassback to summary
pack-priv final Class<?> validatorClass

Constructor Detail

Validatorback to summary
pack-priv Validator(final Class<?> validatorClass, final GuardedInvocationComponent.ValidationType validationType)

Method Detail

composeback to summary
pack-priv GuardedInvocationComponent.Validator compose(final GuardedInvocationComponent.Validator other)
isAssignableFromback to summary
private boolean isAssignableFrom(final GuardedInvocationComponent.Validator other)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override