proguard.classfile.attribute.annotation
Class AnnotationDefaultAttribute

java.lang.Object
  extended by proguard.classfile.attribute.Attribute
      extended by proguard.classfile.attribute.annotation.AnnotationDefaultAttribute
All Implemented Interfaces:
VisitorAccepter

public class AnnotationDefaultAttribute
extends Attribute

This Attribute represents an annotation default attribute.


Field Summary
 ElementValue defaultValue
           
 
Fields inherited from class proguard.classfile.attribute.Attribute
u2attributeNameIndex, visitorInfo
 
Constructor Summary
AnnotationDefaultAttribute()
          Creates an uninitialized AnnotationDefaultAttribute.
AnnotationDefaultAttribute(int u2attributeNameIndex, ElementValue defaultValue)
          Creates an initialized AnnotationDefaultAttribute.
 
Method Summary
 void accept(Clazz clazz, Method method, AttributeVisitor attributeVisitor)
          Accepts the given visitor in the context of the given method.
 void defaultValueAccept(Clazz clazz, ElementValueVisitor elementValueVisitor)
          Applies the given visitor to the default element value.
 
Methods inherited from class proguard.classfile.attribute.Attribute
accept, accept, accept, getAttributeName, getVisitorInfo, setVisitorInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

public ElementValue defaultValue
Constructor Detail

AnnotationDefaultAttribute

public AnnotationDefaultAttribute()
Creates an uninitialized AnnotationDefaultAttribute.


AnnotationDefaultAttribute

public AnnotationDefaultAttribute(int u2attributeNameIndex,
                                  ElementValue defaultValue)
Creates an initialized AnnotationDefaultAttribute.

Method Detail

defaultValueAccept

public void defaultValueAccept(Clazz clazz,
                               ElementValueVisitor elementValueVisitor)
Applies the given visitor to the default element value.


accept

public void accept(Clazz clazz,
                   Method method,
                   AttributeVisitor attributeVisitor)
Description copied from class: Attribute
Accepts the given visitor in the context of the given method.

Overrides:
accept in class Attribute