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

pack-priv Class StaticClassLinker

extends Object
implements TypeBasedGuardingDynamicLinker
Class Inheritance
All Implemented Interfaces
jdk.dynalink.linker.TypeBasedGuardingDynamicLinker, jdk.dynalink.linker.GuardingDynamicLinker
Imports
java.lang.invoke.MethodHandle, .MethodHandles, .MethodType, java.lang.reflect.Array, java.util.Arrays, .Set, jdk.dynalink.CallSiteDescriptor, .NamedOperation, .StandardNamespace, .StandardOperation, jdk.dynalink.beans.GuardedInvocationComponent.ValidationType, jdk.dynalink.linker.GuardedInvocation, .LinkRequest, .LinkerServices, .TypeBasedGuardingDynamicLinker, jdk.dynalink.linker.support.Lookup

Provides a linker for the StaticClass objects.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final MethodHandle
pack-priv static final MethodHandle
pack-priv static final MethodHandle
private static final ClassValue<StaticClassLinker.SingleClassStaticsLinker>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
canLinkType(final Class<?> type)

Implements jdk.dynalink.linker.TypeBasedGuardingDynamicLinker.canLinkType.

Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.

pack-priv static Object
getConstructorMethod(final Class<?> clazz, final String signature)

public GuardedInvocation
getGuardedInvocation(final LinkRequest request, final LinkerServices linkerServices)

Implements jdk.dynalink.linker.GuardingDynamicLinker.getGuardedInvocation.

Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.

pack-priv static Set<String>
pack-priv static Set<String>
getStaticMethodNames(final Class<?> clazz)

pack-priv static Set<String>
private static boolean
isClass(final Class<?> clazz, final Object obj)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ARRAY_CTORback to summary
pack-priv static final MethodHandle ARRAY_CTOR
GET_CLASSback to summary
pack-priv static final MethodHandle GET_CLASS
IS_CLASSback to summary
pack-priv static final MethodHandle IS_CLASS
linkersback to summary
private static final ClassValue<StaticClassLinker.SingleClassStaticsLinker> linkers

Constructor Detail

StaticClassLinkerback to summary
pack-priv StaticClassLinker()

Method Detail

canLinkTypeback to summary
public boolean canLinkType(final Class<?> type)

Implements jdk.dynalink.linker.TypeBasedGuardingDynamicLinker.canLinkType.

Doc from jdk.dynalink.linker.TypeBasedGuardingDynamicLinker.canLinkType.

Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.

Annotations
@Override
getConstructorMethodback to summary
pack-priv static Object getConstructorMethod(final Class<?> clazz, final String signature)
getGuardedInvocationback to summary
public GuardedInvocation getGuardedInvocation(final LinkRequest request, final LinkerServices linkerServices) throws Exception

Implements jdk.dynalink.linker.GuardingDynamicLinker.getGuardedInvocation.

Doc from jdk.dynalink.linker.GuardingDynamicLinker.getGuardedInvocation.

Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.

Annotations
@Override
Exceptions
Exception:
if the operation fails for whatever reason
getReadableStaticPropertyNamesback to summary
pack-priv static Set<String> getReadableStaticPropertyNames(final Class<?> clazz)
getStaticMethodNamesback to summary
pack-priv static Set<String> getStaticMethodNames(final Class<?> clazz)
getWritableStaticPropertyNamesback to summary
pack-priv static Set<String> getWritableStaticPropertyNames(final Class<?> clazz)
isClassback to summary
private static boolean isClass(final Class<?> clazz, final Object obj)
Annotations
@SuppressWarnings:unused
jdk.dynalink.beans back to summary

private Class StaticClassLinker.SingleClassStaticsLinker

extends AbstractJavaLinker
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final DynamicMethod
Inherited from jdk.dynalink.beans.AbstractJavaLinker:
clazz

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static DynamicMethod

Returns:

a dynamic method containing all overloads of a class' public constructor. If the class has no public constructors, returns null.
createConstructorMethod
(final Class<?>
the target class
clazz
)

Creates a dynamic method containing all overloads of a class' public constructor

pack-priv FacetIntrospector
pack-priv SingleDynamicMethod
public GuardedInvocation
getGuardedInvocation(final LinkRequest request, final LinkerServices linkerServices)

Overrides jdk.dynalink.beans.AbstractJavaLinker.getGuardedInvocation.

Implements jdk.dynalink.linker.GuardingDynamicLinker.getGuardedInvocation.

Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.

protected GuardedInvocationComponent
Inherited from jdk.dynalink.beans.AbstractJavaLinker:
createDynamicMethodgetClassGuardgetClassGuardedInvocationComponentgetDynamicMethodgetMethodNamesgetNextComponentgetReadablePropertyNamesgetWritablePropertyNamesmatchReturnTypessetPropertyGetter

Field Detail

constructorback to summary
private final DynamicMethod constructor

Constructor Detail

SingleClassStaticsLinkerback to summary
pack-priv SingleClassStaticsLinker(final Class<?> clazz)

Method Detail

createConstructorMethodback to summary
private static DynamicMethod createConstructorMethod(final Class<?> clazz)

Creates a dynamic method containing all overloads of a class' public constructor

Parameters
clazz:Class<?>

the target class

Returns:DynamicMethod

a dynamic method containing all overloads of a class' public constructor. If the class has no public constructors, returns null.

createFacetIntrospectorback to summary
pack-priv FacetIntrospector createFacetIntrospector()

Implements abstract jdk.dynalink.beans.AbstractJavaLinker.createFacetIntrospector.

Annotations
@Override
getConstructorMethodback to summary
pack-priv SingleDynamicMethod getConstructorMethod(final String signature)

Implements abstract jdk.dynalink.beans.AbstractJavaLinker.getConstructorMethod.

Annotations
@Override
getGuardedInvocationback to summary
public GuardedInvocation getGuardedInvocation(final LinkRequest request, final LinkerServices linkerServices) throws Exception

Overrides jdk.dynalink.beans.AbstractJavaLinker.getGuardedInvocation.

Implements jdk.dynalink.linker.GuardingDynamicLinker.getGuardedInvocation.

Doc from jdk.dynalink.linker.GuardingDynamicLinker.getGuardedInvocation.

Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.

Annotations
@Override
Exceptions
Exception:
if the operation fails for whatever reason
getGuardedInvocationComponentback to summary
protected GuardedInvocationComponent getGuardedInvocationComponent(final AbstractJavaLinker.ComponentLinkRequest req) throws Exception

Overrides jdk.dynalink.beans.AbstractJavaLinker.getGuardedInvocationComponent.

Annotations
@Override