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

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


     */
    private void checkForEnhancedAttribute()
    {
        for (Enumeration e = classFile.attributes().elements();
             e.hasMoreElements();) {
            final ClassAttribute attr = (ClassAttribute)e.nextElement();
            final String attrName = attr.attrName().asString();
            if (SUNJDO_PC_EnhancedAttribute.equals(attrName)) {
                persistenceType = CC_PreviouslyEnhanced;

                // At some point we may want to consider stripping old
                // annotations and re-annotating, but not yet
View Full Code Here


     */
    private void checkForEnhancedAttribute()
    {
        for (Enumeration e = classFile.attributes().elements();
             e.hasMoreElements();) {
            final ClassAttribute attr = (ClassAttribute)e.nextElement();
            final String attrName = attr.attrName().asString();
            if (SUNJDO_PC_EnhancedAttribute.equals(attrName)) {
                persistenceType = CC_PreviouslyEnhanced;

                // At some point we may want to consider stripping old
                // annotations and re-annotating, but not yet
View Full Code Here

        //^olsen: move non-modifying code to Analyzer
        final byte[] data = new byte[2];
        data[0] = (byte)(SUNJDO_PC_EnhancedVersion >>> 8);
        data[1] = (byte)(SUNJDO_PC_EnhancedVersion & 0xff);
        final ClassAttribute annotatedAttr
            = new GenericAttribute(
                classFile.pool().addUtf8(SUNJDO_PC_EnhancedAttribute),
                data);
        classFile.attributes().addElement(annotatedAttr);
    }
View Full Code Here

        //^olsen: move non-modifying code to Analyzer
        final byte[] data = new byte[2];
        data[0] = (byte)(SUNJDO_PC_EnhancedVersion >>> 8);
        data[1] = (byte)(SUNJDO_PC_EnhancedVersion & 0xff);
        final ClassAttribute annotatedAttr
            = new GenericAttribute(
                classFile.pool().addUtf8(SUNJDO_PC_EnhancedAttribute),
                data);
        classFile.attributes().addElement(annotatedAttr);
    }
View Full Code Here

TOP

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

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.