Examples of MethodReference


Examples of org.teavm.model.MethodReference

                if (type.getName().startsWith("[")) {
                    String typeName = type.getName().substring(1);
                    for (int i = 0; i < primitiveTypes.length; ++i) {
                        if (primitiveTypes[i].toString().equals(typeName)) {
                            String wrapper = "java.lang." + primitiveWrappers[i];
                            MethodReference methodRef = new MethodReference(wrapper, "valueOf",
                                    primitiveTypes[i], ValueType.object(wrapper));
                            agent.linkMethod(methodRef, method.getStack()).use();
                            method.getResult().propagate(agent.getType("java.lang." + primitiveWrappers[i]));
                        }
                    }
View Full Code Here

Examples of org.teavm.model.MethodReference

        return append(naming.getNameFor(method));
    }

    public SourceWriter appendMethod(String className, String name, ValueType... params)
            throws NamingException, IOException {
        return append(naming.getNameFor(new MethodReference(className, new MethodDescriptor(name, params))));
    }
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.resolve.refs.MethodReference

                            }

                            @Override
                            public void visitName(GoTypeName type, List<Reference> data, TypeVisitor<List<Reference>> visitor) {
                                data.add(new InterfaceMethodReference(ident, type));
                                data.add(new MethodReference(ident, type));

                                // HACK: I should not have to do this here
                                if (type != type.underlyingType() && !(type.underlyingType() instanceof GoTypeName))
                                    type.underlyingType().accept(visitor);
                            }

                            @Override
                            public void visitPrimitive(GoTypePrimitive type, List<Reference> data, TypeVisitor<List<Reference>> visitor) {
                                data.add(new MethodReference(ident, type));
                            }

                            @Override
                            public void visitStruct(GoTypeStruct type, List<Reference> data, TypeVisitor<List<Reference>> visitor) {
                                data.add(new StructFieldReference(ident, type));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.