Examples of ConstFieldRef


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

        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

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

        // 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

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

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;

        final ConstFieldRef fieldRef = getAnnotatedFieldRefs()[fieldIndex];
        affirm(fieldRef != null);
        final String sig = fieldRef.nameAndType().signature().asString();
        affirm(sig != null && sig.length() > 0);
        final int fieldSize = ((sig.equals("J") || sig.equals("D")) ? 2 : 1);

        // return direct read
        insn = appendDirectReadReturn(insn, fieldRef);
View Full Code Here

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

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;

        // get field's sig and compute first non-parameter slot
        final ConstFieldRef fieldRef = getAnnotatedFieldRefs()[fieldIndex];
        affirm(fieldRef != null);
        final String sig = fieldRef.nameAndType().signature().asString();
        affirm(sig != null && sig.length() > 0);
        final int fieldSize = ((sig.equals("J") || sig.equals("D")) ? 2 : 1);
        final int varStart = 1;

        // mediate access
View Full Code Here

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

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;

        // get field's sig and compute first non-parameter slot
        final ConstFieldRef fieldRef = getAnnotatedFieldRefs()[fieldIndex];
        affirm(fieldRef != null);
        final String sig = fieldRef.nameAndType().signature().asString();
        affirm(sig != null && sig.length() > 0);
        final int fieldSize = ((sig.equals("J") || sig.equals("D")) ? 2 : 1);
        final int varStart = 1;

        // directly return field if flags are <= LOAD_REQUIRED
View Full Code Here

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

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;

        final ConstFieldRef fieldRef = getAnnotatedFieldRefs()[fieldIndex];
        affirm(fieldRef != null);

        // write argument to field and return
        insn = appendDirectWriteReturn(insn, fieldRef);
View Full Code Here

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

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;

        // get field's sig and compute first non-parameter slot
        final ConstFieldRef fieldRef = getAnnotatedFieldRefs()[fieldIndex];
        affirm(fieldRef != null);
        final String sig = fieldRef.nameAndType().signature().asString();
        affirm(sig != null && sig.length() > 0);
        final int fieldSize = ((sig.equals("J") || sig.equals("D")) ? 2 : 1);
        final int varStart = fieldSize + 1;

        // mediate access
View Full Code Here

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

        // begin of method body
        final InsnTarget begin = new InsnTarget();
        Insn insn = begin;

        // get field's sig and compute first non-parameter slot
        final ConstFieldRef fieldRef = getAnnotatedFieldRefs()[fieldIndex];
        affirm(fieldRef != null);
        final String sig = fieldRef.nameAndType().signature().asString();
        affirm(sig != null && sig.length() > 0);
        final int fieldSize = ((sig.equals("J") || sig.equals("D")) ? 2 : 1);
        final int varStart = fieldSize + 1;

        // directly write argument and retrurn if flags are != READ_WRITE_OK
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.