Searched refs:MethodType (Results 1 - 25 of 82) sorted by relevance

1234

/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DFormSubmitEvent.java48 public enum MethodType { GET, POST }; enum in class:FormSubmitEvent
64 MethodType method, String data) {
77 public MethodType getMethod() {
90 private MethodType method;
/openjdk7/hotspot/test/compiler/7158807/
H A DTest7158807.java35 import java.lang.invoke.MethodType;
44 MethodType mt = MethodType.methodType(java.lang.String.class);
46 MethodType mt3 = null;
48 mt3 = MethodType.genericMethodType(i);
/openjdk7/hotspot/test/compiler/7141637/
H A DSpreadNullArg.java34 import java.lang.invoke.MethodType;
40 MethodType mt_ref_arg = MethodType.methodType(int.class, Integer.class);
/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DSimpleMethodHandle.java38 private SimpleMethodHandle(MethodType type, LambdaForm form) {
42 /*non-public*/ static SimpleMethodHandle make(MethodType type, LambdaForm form) {
48 MethodType type2 = type().dropParameterTypes(pos, pos+1);
54 MethodHandle dropArguments(MethodType srcType, int pos, int drops) {
60 MethodHandle permuteArguments(MethodType newType, int[] reorder) {
66 MethodHandle copyWith(MethodType mt, LambdaForm lf) {
H A DMethodType.java53 * All instances of {@code MethodType} are immutable.
68 * {@code MethodType} objects are sometimes derived from bytecode instructions
79 * When the JVM materializes a {@code MethodType} from a descriptor string,
82 * This loading may occur at any time before the {@code MethodType} object is first derived.
86 class MethodType implements java.io.Serializable { class in inherits:java.io.Serializable
95 private MethodType wrapAlt; // alternative wrapped/unwrapped version
101 private MethodType(Class<?> rtype, Class<?>[] ptypes) { method in class:MethodType
187 MethodType methodType(Class<?> rtype, Class<?>[] ptypes) {
199 MethodType methodType(Class<?> rtype, List<Class<?>> ptypes) {
219 MethodType methodTyp
977 private MethodType() { method in class:MethodType
[all...]
H A DInvokeGeneric.java38 private final MethodType erasedCallerType;
45 /*non-public*/ InvokeGeneric(MethodType erasedCallerType) throws ReflectiveOperationException {
50 .insertParameterTypes(0, MethodType.class, MethodHandle.class))
59 /*non-public*/ static MethodHandle generalInvokerOf(MethodType erasedCallerType) throws ReflectiveOperationException {
77 private static final Class<?>[] EXTRA_ARGS = { MethodType.class, MethodHandle.class };
80 MethodType invokerType = erasedCallerType.insertParameterTypes(0, EXTRA_ARGS);
90 MethodType.methodType(MethodHandle.class,
91 MethodType.class, MethodHandle.class));
100 private MethodHandle dispatch(MethodType callerType, MethodHandle target) {
101 MethodType targetTyp
[all...]
H A DVolatileCallSite.java52 public VolatileCallSite(MethodType type) {
H A DInvokers.java41 private final MethodType targetType;
69 /*non-public*/ Invokers(MethodType targetType) {
77 MethodType mtype = targetType;
78 MethodType invokerType = mtype.invokerType();
81 if (mtype.parameterSlotCount() <= MethodType.MAX_MH_INVOKER_ARITY - MTYPE_ARG_APPENDED) {
98 MethodType mtype = targetType;
99 MethodType invokerType = mtype.invokerType();
103 if (mtype.parameterSlotCount() <= MethodType.MAX_MH_INVOKER_ARITY - GENERIC_INVOKER_SLOP) {
126 static MemberName invokeBasicMethod(MethodType type) {
151 MethodType erasedTyp
[all...]
H A DCallSite.java76 "printArgs", MethodType.methodType(void.class, Object[].class));
78 private static CallSite bootstrapDynamic(MethodHandles.Lookup caller, String name, MethodType type) {
104 CallSite(MethodType type) {
130 CallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable {
145 public MethodType type() {
172 * The type of the new target must be {@linkplain MethodType#equals equal to}
187 MethodType oldType = oldTarget.type();
188 MethodType newType = newTarget.type(); // null check!
193 private static WrongMethodTypeException wrongTargetType(MethodHandle target, MethodType type) {
204 * getTarget = MethodHandles.publicLookup().bind(this, "getTarget", MethodType
[all...]
H A DMethodHandle.java54 * This type descriptor is a {@link java.lang.invoke.MethodType MethodType} object,
256 MethodType mt; MethodHandle mh;
259 mt = MethodType.methodType(String.class, char.class, char.class);
268 mt = MethodType.methodType(java.util.List.class, Object[].class);
275 mt = MethodType.genericMethodType(3);
281 mt = MethodType.methodType(int.class);
286 mt = MethodType.methodType(void.class, String.class);
405 * @see MethodType
420 private final MethodType typ
[all...]
H A DMethodHandleInfo.java45 private final MethodType methodType;
64 public MethodType getMethodType() {
H A DConstantCallSite.java80 protected ConstantCallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable {
H A DMethodTypeForm.java50 final MethodType erasedType; // the canonical erasure
51 final MethodType basicType; // the canonical erasure, with primitives simplified
78 public MethodType erasedType() {
82 public MethodType basicType() {
109 protected MethodTypeForm(MethodType erasedType) {
155 this.basicType = MethodType.makeImpl(bt, bpts, true);
255 static MethodTypeForm findForm(MethodType mt) {
256 MethodType erased = canonicalize(mt, ERASE, ERASE);
282 public static MethodType canonicalize(MethodType m
[all...]
H A DMethodHandleImpl.java60 MethodType srcType = accessor.type().erase();
61 MethodType lambdaType = srcType.invokerType();
118 static MethodType type(Class<?> arrayClass, boolean isSetter) {
128 MethodType.methodType(elemClass, arrayArgClass, int.class) :
129 MethodType.methodType(void.class, arrayArgClass, int.class, elemClass);
135 MethodType.methodType(Object.class, classArgClass, arrayArgClass, int.class) :
136 MethodType.methodType(void.class, classArgClass, arrayArgClass, int.class, Object.class);
139 static MethodType correctType(Class<?> arrayClass, boolean isSetter) {
142 MethodType.methodType(elemClass, arrayClass, int.class) :
143 MethodType
[all...]
H A DMutableCallSite.java42 MutableCallSite name = new MutableCallSite(MethodType.methodType(String.class));
44 MethodType MT_str1 = MethodType.methodType(String.class);
57 MethodType MT_str2 = MethodType.methodType(String.class, String.class);
99 public MutableCallSite(MethodType type) {
H A DMethodHandles.java583 MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
632 public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
642 private MethodHandle findVirtualForMH(String name, MethodType type) {
643 // these names require special lookups because of the implicit MethodType argument
677 public MethodHandle findConstructor(Class<?> refc, MethodType type) throws NoSuchMethodException, IllegalAccessException {
718 public MethodHandle findSpecial(Class<?> refc, String name, MethodType type,
838 import static java.lang.invoke.MethodType.*;
842 MethodType mt1 = mh1.type();
863 public MethodHandle bind(Object receiver, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
1014 MemberName resolveOrFail(byte refKind, Class<?> refc, String name, MethodType typ
[all...]
/openjdk7/jdk/test/java/lang/invoke/
H A DMethodTypeTest.java25 * @summary unit tests for java.lang.invoke.MethodType
33 import java.lang.invoke.MethodType;
48 private MethodType mt_viS, mt_OO, mt_OO2, mt_vv, mt_Vv, mt_Ov;
49 private MethodType mt_iSI, mt_ISi, mt_ISI, mt_iSi;
50 private MethodType mt_viO, mt_iO2, mt_OOi, mt_iOi;
51 private MethodType mt_VIO, mt_IO2, mt_OOI, mt_IOI, mt_VIS;
52 private MethodType mt_vOiSzA, mt_OO99;
53 private MethodType[] GALLERY;
61 mt_viS = MethodType.methodType(void.class, int.class, String.class);
62 mt_OO = MethodType
[all...]
H A DInvokeDynamicPrintArgs.java46 import static java.lang.invoke.MethodType.*;
145 private static CallSite bsm(Lookup caller, String name, MethodType type) throws ReflectiveOperationException {
150 private static MethodType MT_bsm() {
152 return methodType(CallSite.class, Lookup.class, String.class, MethodType.class);
174 PrintingCallSite(Lookup caller, String name, MethodType type, Object... staticArgs) throws Throwable {
201 private static CallSite bsm2(Lookup caller, String name, MethodType type, Object... arg) throws Throwable {
205 private static MethodType MT_bsm2() {
207 return methodType(CallSite.class, Lookup.class, String.class, MethodType.class, Object[].class);
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/
H A DMethodType.java21 * $Id: MethodType.java,v 1.2.4.1 2005/09/05 11:18:05 pvedula Exp $
32 public final class MethodType extends Type { class in inherits:Type
36 public MethodType(Type resultType) { method in class:MethodType
41 public MethodType(Type resultType, Type arg1) { method in class:MethodType
52 public MethodType(Type resultType, Type arg1, Type arg2) { method in class:MethodType
59 public MethodType(Type resultType, Type arg1, Type arg2, Type arg3) { method in class:MethodType
67 public MethodType(Type resultType, Vector argsType) { method in class:MethodType
118 if (other instanceof MethodType) {
119 final MethodType temp = (MethodType) othe
[all...]
/openjdk7/hotspot/test/compiler/6990212/
H A DTest6990212.java48 MethodHandle target = MethodHandles.lookup().findVirtual(intf.class, "target", MethodType.methodType(Object.class));
/openjdk7/jdk/src/share/classes/sun/tools/java/
H A DMethodType.java39 class MethodType extends Type { class in inherits:Type
55 MethodType(String typeSig, Type returnType, Type argTypes[]) { method in class:MethodType
73 MethodType m = (MethodType)t;
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/
H A DParser.java32 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodType;
765 MethodType I_V = new MethodType(Type.Int, Type.Void);
766 MethodType I_R = new MethodType(Type.Int, Type.Real);
767 MethodType I_S = new MethodType(Type.Int, Type.String);
768 MethodType I_D = new MethodType(Type.Int, Type.NodeSet);
769 MethodType R_
[all...]
H A DUnaryOpExpr.java29 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodType;
66 final MethodType ptype = lookupPrimop(stable, "u-",
67 new MethodType(Type.Void,
/openjdk7/jdk/test/java/lang/invoke/6987555/
H A DTest6987555.java55 MethodHandle mh1 = MethodHandles.lookup().findStatic(CLASS, NAME, MethodType.methodType(boolean.class, boolean.class));
56 MethodHandle mh2 = mh1.asType(MethodType.methodType(boolean.class, Boolean.class));
81 MethodHandle mh1 = MethodHandles.lookup().findStatic(CLASS, NAME, MethodType.methodType(byte.class, byte.class));
82 MethodHandle mh2 = mh1.asType(MethodType.methodType(byte.class, Byte.class));
105 MethodHandle mh1 = MethodHandles.lookup().findStatic(CLASS, NAME, MethodType.methodType(char.class, char.class));
106 MethodHandle mh2 = mh1.asType(MethodType.methodType(char.class, Character.class));
135 MethodHandle mh1 = MethodHandles.lookup().findStatic(CLASS, NAME, MethodType.methodType(short.class, short.class));
136 MethodHandle mh2 = mh1.asType(MethodType.methodType(short.class, Short.class));
165 MethodHandle mh1 = MethodHandles.lookup().findStatic(CLASS, NAME, MethodType.methodType(int.class, int.class));
166 MethodHandle mh2 = mh1.asType(MethodType
[all...]
/openjdk7/hotspot/test/compiler/7082949/
H A DTest7082949.java35 import static java.lang.invoke.MethodType.*;

Completed in 106 milliseconds

1234