edu.rice.cs.cunit.classFile.attributes.visitors
Class ADefaultAttributeVisitor<R,D>

java.lang.Object
  extended by edu.rice.cs.cunit.classFile.attributes.visitors.ADefaultAttributeVisitor<R,D>
All Implemented Interfaces:
IAttributeVisitor<R,D>

public abstract class ADefaultAttributeVisitor<R,D>
extends java.lang.Object
implements IAttributeVisitor<R,D>

An attribute visitor in which all cases call an abstract default method.

Author:
Mathias Ricken

Constructor Summary
ADefaultAttributeVisitor()
           
 
Method Summary
 R annotationDefaultCase(AnnotationDefaultAttributeInfo host, D param)
          Case for an AnnotationDefault attribute.
 R codeCase(CodeAttributeInfo host, D param)
          Case for Code attribute.
 R constantValueCase(ConstantValueAttributeInfo host, D param)
          Case for ConstantValue attribute.
abstract  R defaultCase(AAttributeInfo host, D param)
          Abstract default case.
 R deprecatedCase(DeprecatedAttributeInfo host, D param)
          Case for a Deprecated attribute.
 R enclosingMethodCase(EnclosingMethodAttributeInfo host, D param)
          Case for a EnclosingMethod attribute.
 R exceptionsCase(ExceptionsAttributeInfo host, D param)
          Case for Exceptions attribute.
 R innerClassesCase(InnerClassesAttributeInfo host, D param)
          Case for a InnerClasses attribute.
 R instrumentationCase(InstrumentationAttributeInfo host, D param)
          Case for a Instrumentation attribute.
 R lineNumberTableCase(LineNumberTableAttributeInfo host, D param)
          Case for LineNumberTable attribute.
 R localVariableTableCase(LocalVariableTableAttributeInfo host, D param)
          Case for LocalVariableTable attribute.
 R localVariableTypeTableCase(LocalVariableTypeTableAttributeInfo host, D param)
          Case for LocalVariableTypeTable attribute.
 R runtimeInvisibleAnnotationsCase(RuntimeInvisibleAnnotationsAttributeInfo host, D param)
          Case for a RuntimeInvisibleAnnotations attribute.
 R runtimeInvisibleLocalVariableAnnotationsCase(RuntimeInvisibleLocalVariableAnnotationsAttributeInfo host, D param)
          Case for a (non-standard) RuntimeInvisibleLocalVariableAnnotations attribute.
 R runtimeInvisibleParameterAnnotationsCase(RuntimeInvisibleParameterAnnotationsAttributeInfo host, D param)
          Case for a RuntimeInvisibleParameterAnnotations attribute.
 R runtimeVisibleAnnotationsCase(RuntimeVisibleAnnotationsAttributeInfo host, D param)
          Case for a RuntimeVisibleAnnotations attribute.
 R runtimeVisibleLocalVariableAnnotationsCase(RuntimeVisibleLocalVariableAnnotationsAttributeInfo host, D param)
          Case for a (non-standard) RuntimeVisibleLocalVariableAnnotations attribute.
 R runtimeVisibleParameterAnnotationsCase(RuntimeVisibleParameterAnnotationsAttributeInfo host, D param)
          Case for a RuntimeVisibleParameterAnnotations attribute.
 R signatureCase(SignatureAttributeInfo host, D param)
          Case for Signature attribute.
 R sourceFileCase(SourceFileAttributeInfo host, D param)
          Case for SourceFile attribute.
 R syntheticCase(SyntheticAttributeInfo host, D param)
          Case for a Synthetic attribute.
 R unknownCase(UnknownAttributeInfo host, D param)
          Case for an unknown attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADefaultAttributeVisitor

public ADefaultAttributeVisitor()
Method Detail

defaultCase

public abstract R defaultCase(AAttributeInfo host,
                              D param)
Abstract default case.

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

sourceFileCase

public R sourceFileCase(SourceFileAttributeInfo host,
                        D param)
Case for SourceFile attribute.

Specified by:
sourceFileCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

constantValueCase

public R constantValueCase(ConstantValueAttributeInfo host,
                           D param)
Case for ConstantValue attribute.

Specified by:
constantValueCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

unknownCase

public R unknownCase(UnknownAttributeInfo host,
                     D param)
Case for an unknown attribute.

Specified by:
unknownCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

codeCase

public R codeCase(CodeAttributeInfo host,
                  D param)
Case for Code attribute.

Specified by:
codeCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

exceptionsCase

public R exceptionsCase(ExceptionsAttributeInfo host,
                        D param)
Case for Exceptions attribute.

Specified by:
exceptionsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

lineNumberTableCase

public R lineNumberTableCase(LineNumberTableAttributeInfo host,
                             D param)
Case for LineNumberTable attribute.

Specified by:
lineNumberTableCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

localVariableTableCase

public R localVariableTableCase(LocalVariableTableAttributeInfo host,
                                D param)
Case for LocalVariableTable attribute.

Specified by:
localVariableTableCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

localVariableTypeTableCase

public R localVariableTypeTableCase(LocalVariableTypeTableAttributeInfo host,
                                    D param)
Case for LocalVariableTypeTable attribute.

Specified by:
localVariableTypeTableCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

signatureCase

public R signatureCase(SignatureAttributeInfo host,
                       D param)
Case for Signature attribute.

Specified by:
signatureCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

annotationDefaultCase

public R annotationDefaultCase(AnnotationDefaultAttributeInfo host,
                               D param)
Case for an AnnotationDefault attribute.

Specified by:
annotationDefaultCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

runtimeVisibleAnnotationsCase

public R runtimeVisibleAnnotationsCase(RuntimeVisibleAnnotationsAttributeInfo host,
                                       D param)
Case for a RuntimeVisibleAnnotations attribute.

Specified by:
runtimeVisibleAnnotationsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

runtimeInvisibleAnnotationsCase

public R runtimeInvisibleAnnotationsCase(RuntimeInvisibleAnnotationsAttributeInfo host,
                                         D param)
Case for a RuntimeInvisibleAnnotations attribute.

Specified by:
runtimeInvisibleAnnotationsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

runtimeVisibleParameterAnnotationsCase

public R runtimeVisibleParameterAnnotationsCase(RuntimeVisibleParameterAnnotationsAttributeInfo host,
                                                D param)
Case for a RuntimeVisibleParameterAnnotations attribute.

Specified by:
runtimeVisibleParameterAnnotationsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

runtimeInvisibleParameterAnnotationsCase

public R runtimeInvisibleParameterAnnotationsCase(RuntimeInvisibleParameterAnnotationsAttributeInfo host,
                                                  D param)
Case for a RuntimeInvisibleParameterAnnotations attribute.

Specified by:
runtimeInvisibleParameterAnnotationsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

innerClassesCase

public R innerClassesCase(InnerClassesAttributeInfo host,
                          D param)
Case for a InnerClasses attribute.

Specified by:
innerClassesCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

syntheticCase

public R syntheticCase(SyntheticAttributeInfo host,
                       D param)
Case for a Synthetic attribute.

Specified by:
syntheticCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

enclosingMethodCase

public R enclosingMethodCase(EnclosingMethodAttributeInfo host,
                             D param)
Case for a EnclosingMethod attribute.

Specified by:
enclosingMethodCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

deprecatedCase

public R deprecatedCase(DeprecatedAttributeInfo host,
                        D param)
Case for a Deprecated attribute.

Specified by:
deprecatedCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

instrumentationCase

public R instrumentationCase(InstrumentationAttributeInfo host,
                             D param)
Case for a Instrumentation attribute.

Specified by:
instrumentationCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

runtimeInvisibleLocalVariableAnnotationsCase

public R runtimeInvisibleLocalVariableAnnotationsCase(RuntimeInvisibleLocalVariableAnnotationsAttributeInfo host,
                                                      D param)
Case for a (non-standard) RuntimeInvisibleLocalVariableAnnotations attribute.

Specified by:
runtimeInvisibleLocalVariableAnnotationsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue

runtimeVisibleLocalVariableAnnotationsCase

public R runtimeVisibleLocalVariableAnnotationsCase(RuntimeVisibleLocalVariableAnnotationsAttributeInfo host,
                                                    D param)
Case for a (non-standard) RuntimeVisibleLocalVariableAnnotations attribute.

Specified by:
runtimeVisibleLocalVariableAnnotationsCase in interface IAttributeVisitor<R,D>
Parameters:
host - attribute
param - visitor-specific parameter
Returns:
visitor-specific return vakue