Examples of signature()


Examples of org.apache.jdo.impl.enhancer.classfile.ClassMethod.signature()

        final Map[] classMethods = { new HashMap(), new HashMap() };
        for (int i = 0; i < 2; i++) {
            for (Enumeration e = classFiles[i].methods().elements();
                 e.hasMoreElements();) {
                final ClassMethod method = (ClassMethod)e.nextElement();
                final String methodSig = method.signature().asString();
                final String methodArgs = Descriptor.userMethodArgs(methodSig);
                final String methodName = method.name().asString();

                if (methodName.startsWith("jdo")) {
                //if (methodName.equals("jdoReplaceField")) {
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ClassMethod.signature()

        int res = NEGATIVE;
       
        Enumeration e = classFile.methods().elements();
        while (e.hasMoreElements()) {
            final ClassMethod method = (ClassMethod)e.nextElement();
            final String methodSig = method.signature().asString();
            final String methodArgs = Descriptor.userMethodArgs(methodSig);
            final String methodName = method.name().asString() + methodArgs;
           
            // check class-specific enhancement
            final StringWriter s = new StringWriter();
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

        final ConstFieldRef fieldRef = (ConstFieldRef)fieldInsn.value();
        final ConstClass declClass = fieldRef.className();
        final String declClassName = declClass.asString();
        final ConstNameAndType fieldNameAndType = fieldRef.nameAndType();
        final String fieldName = fieldNameAndType.name().asString();
        final String fieldType = fieldNameAndType.signature().asString();

        // check if field is known to be non-managed or not annotatable
        final int res;
        if (jdoMeta.isKnownNonManagedField(declClassName,
                                           fieldName, fieldType)) {
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

        final ConstMethodRef methodRef = (ConstMethodRef)methodInsn.value();
        final ConstClass declClass = methodRef.className();
        final String declClassName = declClass.asString();
        final ConstNameAndType methodNameAndType = methodRef.nameAndType();
        final String methodName = methodNameAndType.name().asString();
        final String methodType = methodNameAndType.signature().asString();

        if (!methodName.startsWith("jdoSet")
            && (!methodName.startsWith("jdoGet")
                || methodName.equals("jdoGetManagedFieldCount"))) {
            return NEGATIVE;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

        final InsnConstOp fieldInsn = (InsnConstOp)insn;
        final ConstFieldRef fieldRef = (ConstFieldRef)fieldInsn.value();

        final ConstNameAndType fieldNameAndType = fieldRef.nameAndType();
        final String fieldName = fieldNameAndType.name().asString();
        final String fieldType = fieldNameAndType.signature().asString();

        final String qualifyingClassName = fieldRef.className().asString();
        // get the field's declaring class from the model
        final String declClassName =
            meta.getDeclaringClass(qualifyingClassName, fieldName);
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

            final InsnConstOp invoke = (InsnConstOp)insn;
            final ConstMethodRef methodRef = (ConstMethodRef)invoke.value();
            final ConstNameAndType methodNT = methodRef.nameAndType();
            final String methodName = methodNT.name().asString();
            final String methodSig = methodNT.signature().asString();

            if (!(methodName.equals("clone")
                  && methodSig.equals("()Ljava/lang/Object;")))
                continue;
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

            // add field references
            keyClassKeyFieldRefs = new ConstFieldRef[keyFieldCount];
            for (int i = 0; i < keyFieldCount; i++) {
                final ConstNameAndType nt = keyFieldRefs[i].nameAndType();
                final String name = nt.name().asString();
                final String sig = nt.signature().asString();
                keyClassKeyFieldRefs[i]
                    = pool.addFieldRef(keyClassName, name, sig);
                affirm(keyClassKeyFieldRefs[i] != null);
            }
        }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

        final ConstFieldRef fieldRef = (ConstFieldRef)fieldInsn.value();
        final ConstClass declClass = fieldRef.className();
        final String declClassName = declClass.asString();
        final ConstNameAndType fieldNameAndType = fieldRef.nameAndType();
        final String fieldName = fieldNameAndType.name().asString();
        final String fieldType = fieldNameAndType.signature().asString();

        // check if field is known to be non-managed or not annotatable
        final int res;
        if (jdoMeta.isKnownNonManagedField(declClassName,
                                           fieldName, fieldType)) {
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ConstNameAndType.signature()

        final ConstMethodRef methodRef = (ConstMethodRef)methodInsn.value();
        final ConstClass declClass = methodRef.className();
        final String declClassName = declClass.asString();
        final ConstNameAndType methodNameAndType = methodRef.nameAndType();
        final String methodName = methodNameAndType.name().asString();
        final String methodType = methodNameAndType.signature().asString();

        if (!methodName.startsWith("jdoSet")
            && (!methodName.startsWith("jdoGet")
                || methodName.equals("jdoGetManagedFieldCount"))) {
            return NEGATIVE;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.signature()

      byte methodIndexByte1 = 0;
      byte methodIndexByte2 = 0;
      if (this.referenceBinding instanceof LocalTypeBinding) {
        MethodBinding methodBinding = ((LocalTypeBinding) this.referenceBinding).enclosingMethod;
        if (methodBinding != null) {
          int enclosingMethodIndex = constantPool.literalIndexForNameAndType(methodBinding.selector, methodBinding.signature(this));
          methodIndexByte1 = (byte) (enclosingMethodIndex >> 8);
          methodIndexByte2 = (byte) enclosingMethodIndex;
        }
      }
      contents[contentsOffset++] = methodIndexByte1;
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.