Modifier and Type | Field and Description |
---|---|
private boolean | |
private static MethodHandle | |
private final Class | |
private final VarHandle |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv MethodType | accessModeTypeUncached(VarHandle.
Implements abstract java.
|
pack-priv VarHandle | |
public Optional | describeConstable()
Overrides java. Implements java. Return a nominal descriptor for this instance, if one can be
constructed, or an empty |
private void | |
private static MethodHandle | |
public MethodHandle | getMethodHandleUncached(int accessMode)
Overrides java. Computes a method handle that can be passed the direct var handle of this var handle with the given access mode. |
private void | |
pack-priv VarHandle | |
public VarHandle | withInvokeBehavior()
Implements abstract java. Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior. |
public VarHandle | withInvokeExactBehavior()
Implements abstract java. Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior. |
initialized | back to summary |
---|---|
private boolean initialized
|
MH_ensureInitialized | back to summary |
---|---|
private static MethodHandle MH_ensureInitialized
|
refc | back to summary |
---|---|
private final Class<?> refc |
target | back to summary |
---|---|
private final VarHandle target |
LazyInitializingVarHandle | back to summary |
---|---|
pack-priv LazyInitializingVarHandle(VarHandle target, Class<?> refc) |
accessModeTypeUncached | back to summary |
---|---|
pack-priv MethodType accessModeTypeUncached(VarHandle. Implements abstract java.
|
asDirect | back to summary |
---|---|
pack-priv VarHandle asDirect() Overrides java. Doc from java. Returns the direct target VarHandle. Indirect VarHandle subclasses should implement this method.
|
describeConstable | back to summary |
---|---|
public Optional Overrides java. Implements java. Doc from java. Return a nominal descriptor for this instance, if one can be
constructed, or an empty |
ensureInitialized | back to summary |
---|---|
private void ensureInitialized()
|
ensureInitializedMh | back to summary |
---|---|
private static MethodHandle ensureInitializedMh() |
getMethodHandleUncached | back to summary |
---|---|
public MethodHandle getMethodHandleUncached(int accessMode) Overrides java. Doc from java. Computes a method handle that can be passed the direct var handle of this var handle with the given access mode. Pre/postprocessing such as argument or return value filtering should be done by the returned method handle.
|
initialize | back to summary |
---|---|
private void initialize() |
target | back to summary |
---|---|
pack-priv VarHandle target() Overrides java. Doc from java. Returns the target VarHandle. Subclasses may override this method to implement additional logic for example lazily initializing the declaring class of a static field var handle.
|
withInvokeBehavior | back to summary |
---|---|
public VarHandle withInvokeBehavior() Implements abstract java. Doc from java. Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior. If this VarHandle already has invoke behavior this VarHandle is returned.
Invoking |
withInvokeExactBehavior | back to summary |
---|---|
public VarHandle withInvokeExactBehavior() Implements abstract java. Doc from java. Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior. If this VarHandle already has invoke-exact behavior this VarHandle is returned.
Invoking |