edu.rice.cs.cunit.classFile.constantPool.visitors
Class CheckIntegerVisitor

java.lang.Object
  extended by edu.rice.cs.cunit.classFile.constantPool.visitors.ADefaultPoolInfoVisitor<IntegerPoolInfo,java.lang.Object>
      extended by edu.rice.cs.cunit.classFile.constantPool.visitors.CheckIntegerVisitor
All Implemented Interfaces:
IPoolInfoVisitor<IntegerPoolInfo,java.lang.Object>

public class CheckIntegerVisitor
extends ADefaultPoolInfoVisitor<IntegerPoolInfo,java.lang.Object>

Check that the host is a Integer info.

Author:
Mathias Ricken

Field Summary
private static CheckIntegerVisitor _instance
          Singleton instance.
 
Constructor Summary
private CheckIntegerVisitor()
          Singleton constructor.
 
Method Summary
 IntegerPoolInfo defaultCase(APoolInfo host, java.lang.Object o)
          All other cases throw.
 IntegerPoolInfo intCase(IntegerPoolInfo host, java.lang.Object o)
          Return host.
static CheckIntegerVisitor singleton()
          Singleton accessor.
 
Methods inherited from class edu.rice.cs.cunit.classFile.constantPool.visitors.ADefaultPoolInfoVisitor
asciizCase, classCase, doubleCase, emptyCase, fieldCase, floatCase, interfaceMethodCase, longCase, methodCase, nameAndTypeCase, stringCase, unicodeCase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

private static CheckIntegerVisitor _instance
Singleton instance.

Constructor Detail

CheckIntegerVisitor

private CheckIntegerVisitor()
Singleton constructor.

Method Detail

singleton

public static CheckIntegerVisitor singleton()
Singleton accessor.

Returns:
singleton

defaultCase

public IntegerPoolInfo defaultCase(APoolInfo host,
                                   java.lang.Object o)
All other cases throw.

Specified by:
defaultCase in class ADefaultPoolInfoVisitor<IntegerPoolInfo,java.lang.Object>
Parameters:
host - non-Long host
o - not used
Returns:
nothing

intCase

public IntegerPoolInfo intCase(IntegerPoolInfo host,
                               java.lang.Object o)
Return host.

Specified by:
intCase in interface IPoolInfoVisitor<IntegerPoolInfo,java.lang.Object>
Overrides:
intCase in class ADefaultPoolInfoVisitor<IntegerPoolInfo,java.lang.Object>
Parameters:
host - Integer host
o - not used
Returns:
host