Examples of RuntimeVisibleAnnotations


Examples of oracle.toplink.libraries.asm.attrs.RuntimeVisibleAnnotations

   
    *  private ValueHolderInterface _toplink_variableName_vh;
    */
    public void addValueHolder(AttributeDetails attributeDetails){
        String attribute = attributeDetails.getAttributeName();
        RuntimeVisibleAnnotations annotations = null;
        if (attributeDetails.getGetterMethodName() == null || attributeDetails.getGetterMethodName().equals("")){
            annotations = getTransientAnnotation();
        }
        weavedVH = true
        cv.visitField(ACC_PRIVATE, "_toplink_" + attribute + "_vh", VHI_SIGNATURE, null, annotations);
View Full Code Here

Examples of oracle.toplink.libraries.asm.attrs.RuntimeVisibleAnnotations

        cv_get.visitInsn(ARETURN);
        cv_get.visitMaxs(0, 0);
    }
  
    private RuntimeVisibleAnnotations getTransientAnnotation(){
        RuntimeVisibleAnnotations attrs = new RuntimeVisibleAnnotations();
        Annotation transientAnnotation = new Annotation("Ljavax/persistence/Transient;");
        attrs.annotations.add(transientAnnotation);
        return attrs;
    }
View Full Code Here

Examples of oracle.toplink.libraries.asm.attrs.RuntimeVisibleAnnotations

{

  protected Attribute read (ClassReader cr, int off,
    int len, char[] buf, int codeOff, Label[] labels)
  {
    RuntimeVisibleAnnotations attr =
      (RuntimeVisibleAnnotations)super.read(
        cr, off, len, buf, codeOff, labels);
   
    ASMRuntimeVisibleAnnotations result = new ASMRuntimeVisibleAnnotations();
    result.annotations = attr.annotations;
View Full Code Here

Examples of org.apache.bcel.classfile.RuntimeVisibleAnnotations

            return attribs;
       
        Annotations new_;
       
        if(isRuntime)
            new_ = new RuntimeVisibleAnnotations(
                    Util.findConstantStringIn(map,
                            "RuntimeVisibleAnnotations"),
                    length,
                    annots.toArray(new AnnotationEntry[annots.size()]),
                    map.to);
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.annotation.RuntimeVisibleAnnotations

    case Constants.ATTR_STACK_MAP:
      return new StackMap(name_index, length, file, constant_pool);

    // J5SUPPORT:
    case Constants.ATTR_RUNTIME_VISIBLE_ANNOTATIONS:
      return new RuntimeVisibleAnnotations(name_index,length,file,constant_pool);
    case Constants.ATTR_RUNTIME_INVISIBLE_ANNOTATIONS:
      return new RuntimeInvisibleAnnotations(name_index,length,file,constant_pool);
    case Constants.ATTR_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS:
      return new RuntimeVisibleParameterAnnotations(name_index,length,file,constant_pool);
    case Constants.ATTR_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS:
View Full Code Here

Examples of org.eclipse.persistence.internal.libraries.asm.attrs.RuntimeVisibleAnnotations

    
     * private ValueHolderInterface _persistence_variableName_vh;
     */
    public void addValueHolder(AttributeDetails attributeDetails){
        String attribute = attributeDetails.getAttributeName();
        RuntimeVisibleAnnotations annotations = null;
        // only mark @Transient if this is property access.  Otherwise, the @Transient annotation could mistakenly
        // cause the class to use attribute access.
        if (attributeDetails.getGetterMethodName() == null || attributeDetails.getGetterMethodName().equals("") || attributeDetails.weaveTransientFieldValueHolders()) {
            annotations = getTransientAnnotation();
        }
View Full Code Here

Examples of org.eclipse.persistence.internal.libraries.asm.attrs.RuntimeVisibleAnnotations

     * public void _persistence_setPropertyChangeListener(PropertyChangeListener propertychangelistener){
     *     _persistence_listener = propertychangelistener;
     * }
     */
    public void addSetPropertyChangeListener(ClassDetails classDetails){
        RuntimeVisibleAnnotations annotations = null;
        CodeVisitor cv_setPCL =  cv.visitMethod(ACC_PUBLIC, "_persistence_setPropertyChangeListener", "(" + PCL_SIGNATURE + ")V", null, annotations);
        cv_setPCL.visitVarInsn(ALOAD, 0);
        cv_setPCL.visitVarInsn(ALOAD, 1);
        cv_setPCL.visitFieldInsn(PUTFIELD, classDetails.getClassName(), "_persistence_listener", PCL_SIGNATURE);
        cv_setPCL.visitInsn(RETURN);
View Full Code Here

Examples of org.eclipse.persistence.internal.libraries.asm.attrs.RuntimeVisibleAnnotations

    /**
     * Return the JPA transient annotation for weaving.
     */
    protected RuntimeVisibleAnnotations getTransientAnnotation(){
        RuntimeVisibleAnnotations attrs = new RuntimeVisibleAnnotations();
        //Annotation transientAnnotation = new Annotation("Ljavax/persistence/Transient;");
        Annotation transientAnnotation = new Annotation(Type.getDescriptor(javax.persistence.Transient.class));
        if (isJAXBOnPath()) {
            try {
                attrs.annotations.add(new Annotation(Type.getDescriptor(Class.forName("javax.xml.bind.annotation.XmlTransient"))));
View Full Code Here

Examples of org.eclipse.persistence.internal.libraries.asm.attrs.RuntimeVisibleAnnotations

{

  protected Attribute read (ClassReader cr, int off,
    int len, char[] buf, int codeOff, Label[] labels)
  {
    RuntimeVisibleAnnotations attr =
      (RuntimeVisibleAnnotations)super.read(
        cr, off, len, buf, codeOff, labels);
   
    ASMRuntimeVisibleAnnotations result = new ASMRuntimeVisibleAnnotations();
    result.annotations = attr.annotations;
View Full Code Here

Examples of org.eclipse.persistence.internal.libraries.asm.attrs.RuntimeVisibleAnnotations

    
     * private ValueHolderInterface _persistence_variableName_vh;
     */
    public void addValueHolder(AttributeDetails attributeDetails){
        String attribute = attributeDetails.getAttributeName();
        RuntimeVisibleAnnotations annotations = null;
        // only mark @Transient if this is property access.  Otherwise, the @Transient annotation could mistakenly
        // cause the class to use attribute access.
        if (attributeDetails.getGetterMethodName() == null || attributeDetails.getGetterMethodName().equals("") || attributeDetails.weaveTransientFieldValueHolders()) {
            annotations = getTransientAnnotation();
        }
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.