|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.dyn.CallSite
java.dyn.ConstantCallSite
public class ConstantCallSite extends CallSite
A ConstantCallSite is a CallSite whose target is permanent, and can never be changed.
The only way to relink an invokedynamic instruction bound to a ConstantCallSite is
to invalidate the instruction as a whole.
| Constructor and Description |
|---|
ConstantCallSite(MethodHandle target)
Create a call site with a permanent target. |
| Modifier and Type | Method and Description |
|---|---|
void |
setTarget(MethodHandle ignore)
Throw an IllegalArgumentException, because this kind of call site cannot change its target. |
| Methods inherited from class java.dyn.CallSite |
|---|
asMethodHandle, asMethodHandle, callerClass, dynamicInvoker, getTarget, initialTarget, initialTarget, name, toString, type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantCallSite(MethodHandle target)
| Method Detail |
|---|
public final void setTarget(MethodHandle ignore)
IllegalArgumentException, because this kind of call site cannot change its target.
setTarget in class CallSiteignore - the new target
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.