edu.rice.cs.cunit.classFile.attributes
Class AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor<R,P>

java.lang.Object
  extended by edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor<R,P>
All Implemented Interfaces:
AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>
Direct Known Subclasses:
AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor
Enclosing class:
AAnnotationsAttributeInfo.Annotation

public abstract static class AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor<R,P>
extends java.lang.Object
implements AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>

Default visitor where all cases delegate to an abstract default case.


Constructor Summary
AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor()
           
 
Method Summary
 R annotationMemberCase(AAnnotationsAttributeInfo.Annotation.AnnotationMemberValue host, P param)
          Case for annotations.
 R arrayMemberCase(AAnnotationsAttributeInfo.Annotation.ArrayMemberValue host, P param)
          Case for arrays.
 R classMemberCase(AAnnotationsAttributeInfo.Annotation.ClassMemberValue host, P param)
          Case for classes.
 R constantMemberCase(AAnnotationsAttributeInfo.Annotation.ConstantMemberValue host, P param)
          Case for constants.
abstract  R defaultCase(AAnnotationsAttributeInfo.Annotation.AMemberValue host, P param)
          Default case.
 R enumMemberCase(AAnnotationsAttributeInfo.Annotation.EnumMemberValue host, P param)
          Case for enums.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor

public AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor()
Method Detail

defaultCase

public abstract R defaultCase(AAnnotationsAttributeInfo.Annotation.AMemberValue host,
                              P param)
Default case.

Parameters:
host - member
param - visitor-specific parameter
Returns:
visitor-specific return value

constantMemberCase

public R constantMemberCase(AAnnotationsAttributeInfo.Annotation.ConstantMemberValue host,
                            P param)
Case for constants.

Specified by:
constantMemberCase in interface AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>
Parameters:
host - constant member
param - visitor-specific parameter
Returns:
visitor-specific return value

enumMemberCase

public R enumMemberCase(AAnnotationsAttributeInfo.Annotation.EnumMemberValue host,
                        P param)
Case for enums.

Specified by:
enumMemberCase in interface AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>
Parameters:
host - enum member
param - visitor-specific parameter
Returns:
visitor-specific return value

classMemberCase

public R classMemberCase(AAnnotationsAttributeInfo.Annotation.ClassMemberValue host,
                         P param)
Case for classes.

Specified by:
classMemberCase in interface AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>
Parameters:
host - class member
param - visitor-specific parameter
Returns:
visitor-specific return value

annotationMemberCase

public R annotationMemberCase(AAnnotationsAttributeInfo.Annotation.AnnotationMemberValue host,
                              P param)
Case for annotations.

Specified by:
annotationMemberCase in interface AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>
Parameters:
host - annotation member
param - visitor-specific parameter
Returns:
visitor-specific return value

arrayMemberCase

public R arrayMemberCase(AAnnotationsAttributeInfo.Annotation.ArrayMemberValue host,
                         P param)
Case for arrays.

Specified by:
arrayMemberCase in interface AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<R,P>
Parameters:
host - array member
param - visitor-specific parameter
Returns:
visitor-specific return value