edu.rice.cs.cunit.classFile.attributes
Class AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor

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

public static class AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor
extends AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor<AAnnotationsAttributeInfo.Annotation.ConstantMemberValue,java.lang.Object>


Field Summary
private static AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor _instance
          Singleton instance.
 
Constructor Summary
private AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor()
          Singleton constructor.
 
Method Summary
 AAnnotationsAttributeInfo.Annotation.ConstantMemberValue constantMemberCase(AAnnotationsAttributeInfo.Annotation.ConstantMemberValue host, java.lang.Object param)
          Case for constants.
 AAnnotationsAttributeInfo.Annotation.ConstantMemberValue defaultCase(AAnnotationsAttributeInfo.Annotation.AMemberValue host, java.lang.Object param)
          Default case.
static AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor singleton()
          Singleton accessor.
 
Methods inherited from class edu.rice.cs.cunit.classFile.attributes.AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor
annotationMemberCase, arrayMemberCase, classMemberCase, enumMemberCase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

private static AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor _instance
Singleton instance.

Constructor Detail

AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor

private AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor()
Singleton constructor.

Method Detail

defaultCase

public AAnnotationsAttributeInfo.Annotation.ConstantMemberValue defaultCase(AAnnotationsAttributeInfo.Annotation.AMemberValue host,
                                                                            java.lang.Object param)
Default case. Throws exception.

Specified by:
defaultCase in class AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor<AAnnotationsAttributeInfo.Annotation.ConstantMemberValue,java.lang.Object>
Parameters:
host - non-constant member
param - visitor-specific parameter
Returns:
does not return

constantMemberCase

public AAnnotationsAttributeInfo.Annotation.ConstantMemberValue constantMemberCase(AAnnotationsAttributeInfo.Annotation.ConstantMemberValue host,
                                                                                   java.lang.Object param)
Case for constants.

Specified by:
constantMemberCase in interface AAnnotationsAttributeInfo.Annotation.IMemberValueVisitor<AAnnotationsAttributeInfo.Annotation.ConstantMemberValue,java.lang.Object>
Overrides:
constantMemberCase in class AAnnotationsAttributeInfo.Annotation.ADefaultMemberValueVisitor<AAnnotationsAttributeInfo.Annotation.ConstantMemberValue,java.lang.Object>
Parameters:
host - constant member
param - visitor-specific parameter
Returns:
the host

singleton

public static AAnnotationsAttributeInfo.Annotation.CheckConstantMemberVisitor singleton()
Singleton accessor.

Returns:
singleton