Package org.apache.jdo.impl.enhancer.classfile

Examples of org.apache.jdo.impl.enhancer.classfile.ConstFieldRef


                                 boolean jdoMethod)
        throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
    {
        // get the instruction arguments
        final InsnConstOp fieldInsn = (InsnConstOp)insn;
        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;
View Full Code Here


            // target for accessing field [i]
            insn = insn.append(targetsOp[i]);

            // get signature and constant field reference for field
            final String sig = managedFieldSigs[i];
            final ConstFieldRef ref = managedFieldRefs[i];
            affirm(sig != null && sig.length() > 0);
            affirm(ref != null);

            // compute stack demand
            sizeHolder.size = max(sizeHolder.size,
View Full Code Here

            // target for accessing field [i]
            insn = insn.append(targetsOp[i]);

            // get signature and constant field reference for field
            final String sig = managedFieldSigs[i];
            final ConstFieldRef ref = managedFieldRefs[i];
            affirm(sig != null && sig.length() > 0);
            affirm(ref != null);

            // compute stack demand
            sizeHolder.size = max(sizeHolder.size,
View Full Code Here

            // target for accessing field [i]
            insn = insn.append(targetsOp[i]);

            // get signature and constant field reference for field
            final String sig = managedFieldSigs[i];
            final ConstFieldRef ref = managedFieldRefs[i];
            affirm(sig != null && sig.length() > 0);
            affirm(ref != null);

            // generate the case-branch for a field depending on its type
            switch (sig.charAt(0)) {
View Full Code Here

        // generate the assignment statements
        int maxFieldSize = 0;
        for (int i = 0; i < keyFieldCount; i++) {
            // assign key field
            final ConstFieldRef thisClassKeyRef = keyFieldRefs[i];
            final ConstFieldRef keyClassKeyRef = keyClassKeyFieldRefs[i];
            affirm(thisClassKeyRef != null);
            affirm(keyClassKeyRef != null);
            if (isToOid) {
                insn = insn.append(Insn.create(opc_aload_2));
                insn = insn.append(Insn.create(opc_aload_0));
View Full Code Here

        // generate the field access statements
        for (int i = 0; i < keyFieldCount; i++) {
            // get field no, constant field ref, and signature for field
            final int no = keyFieldIndexes[i];
            final ConstFieldRef ref = keyFieldRefs[i];
            affirm(ref != null);
            final String sig = ref.nameAndType().signature().asString();
            affirm(sig != null && sig.length() > 0);

            // compute stack demand
            sizeHolder.size = max(sizeHolder.size,
                                  Descriptor.countFieldWords(sig));
View Full Code Here

        affirm(insn.opcode() == opc_getfield || insn.opcode() == opc_putfield);
        final boolean isGet = (insn.opcode() == opc_getfield);

        // get the instruction arguments
        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);
        affirm(declClassName != null, "Cannot get declaring class of "
               + qualifyingClassName + "." + fieldName);
View Full Code Here

            // target for accessing field [i]
            insn = insn.append(targetsOp[i]);

            // get signature and constant field reference for field
            final String sig = managedFieldSigs[i];
            final ConstFieldRef ref = managedFieldRefs[i];
            affirm(sig != null && sig.length() > 0);
            affirm(ref != null);

            // compute stack demand
            sizeHolder.size = max(sizeHolder.size,
View Full Code Here

            // target for accessing field [i]
            insn = insn.append(targetsOp[i]);

            // get signature and constant field reference for field
            final String sig = managedFieldSigs[i];
            final ConstFieldRef ref = managedFieldRefs[i];
            affirm(sig != null && sig.length() > 0);
            affirm(ref != null);

            // compute stack demand
            sizeHolder.size = max(sizeHolder.size,
View Full Code Here

            // target for accessing field [i]
            insn = insn.append(targetsOp[i]);

            // get signature and constant field reference for field
            final String sig = managedFieldSigs[i];
            final ConstFieldRef ref = managedFieldRefs[i];
            affirm(sig != null && sig.length() > 0);
            affirm(ref != null);

            // generate the case-branch for a field depending on its type
            switch (sig.charAt(0)) {
View Full Code Here

TOP

Related Classes of org.apache.jdo.impl.enhancer.classfile.ConstFieldRef

Copyright © 2018 www.massapicom. 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.