edu.rice.cs.cunit.classFile.constantPool.visitors
Interface IPoolInfoVisitor<R,D>

All Known Implementing Classes:
ADefaultPoolInfoVisitor, AValueReferencePoolInfoVisitor, CheckClassOrEmptyVisitor, CheckClassVisitor, CheckLongVisitor, CheckMethodVisitor, CheckNameAndTypeVisitor, CheckUTFOrEmptyVisitor, CheckUTFVisitor, GetPoolInfoSizeVisitor, NoOpPoolInfoVisitor

public interface IPoolInfoVisitor<R,D>

Visitor on constant pool info objects. First generic type parameter is return type, second is parameter type.

Author:
Mathias Ricken

Method Summary
 R asciizCase(ASCIIPoolInfo host, D param)
          Case for asciiz info.
 R classCase(ClassPoolInfo host, D param)
          Case for class info.
 R doubleCase(DoublePoolInfo host, D param)
          Case for double info.
 R emptyCase(EmptyPoolInfo host, D param)
          Case for empty info.
 R fieldCase(FieldPoolInfo host, D param)
          Case for field info.
 R floatCase(FloatPoolInfo host, D param)
          Case for float info.
 R intCase(IntegerPoolInfo host, D param)
          Case for int info.
 R interfaceMethodCase(InterfaceMethodPoolInfo host, D param)
          Case for interface method info.
 R longCase(LongPoolInfo host, D param)
          Case for long info.
 R methodCase(MethodPoolInfo host, D param)
          Case for method info.
 R nameAndTypeCase(NameAndTypePoolInfo host, D param)
          Case for name and type info.
 R stringCase(StringPoolInfo host, D param)
          Case for string info.
 R unicodeCase(UnicodePoolInfo host, D param)
          Case for unicode info.
 

Method Detail

emptyCase

R emptyCase(EmptyPoolInfo host,
            D param)
Case for empty info.

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

classCase

R classCase(ClassPoolInfo host,
            D param)
Case for class info.

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

stringCase

R stringCase(StringPoolInfo host,
             D param)
Case for string info.

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

fieldCase

R fieldCase(FieldPoolInfo host,
            D param)
Case for field info.

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

methodCase

R methodCase(MethodPoolInfo host,
             D param)
Case for method info.

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

interfaceMethodCase

R interfaceMethodCase(InterfaceMethodPoolInfo host,
                      D param)
Case for interface method info.

Parameters:
host - interface method info info
param - visitor-specific parameter
Returns:
visitor-specific return value

nameAndTypeCase

R nameAndTypeCase(NameAndTypePoolInfo host,
                  D param)
Case for name and type info.

Parameters:
host - name and type info
param - visitor-specific parameter
Returns:
visitor-specific return value

intCase

R intCase(IntegerPoolInfo host,
          D param)
Case for int info.

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

floatCase

R floatCase(FloatPoolInfo host,
            D param)
Case for float info.

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

longCase

R longCase(LongPoolInfo host,
           D param)
Case for long info.

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

doubleCase

R doubleCase(DoublePoolInfo host,
             D param)
Case for double info.

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

asciizCase

R asciizCase(ASCIIPoolInfo host,
             D param)
Case for asciiz info.

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

unicodeCase

R unicodeCase(UnicodePoolInfo host,
              D param)
Case for unicode info.

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