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

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

public class CheckLongVisitor
extends ADefaultPoolInfoVisitor<LongPoolInfo,java.lang.Object>

Check that the host is a Long info.

Author:
Mathias Ricken

Field Summary
private static CheckLongVisitor _instance
          Singleton instance.
 
Constructor Summary
private CheckLongVisitor()
          Singleton constructor.
 
Method Summary
 LongPoolInfo defaultCase(APoolInfo host, java.lang.Object o)
          All other cases throw.
 LongPoolInfo longCase(LongPoolInfo host, java.lang.Object o)
          Return host.
static CheckLongVisitor singleton()
          Singleton accessor.
 
Methods inherited from class edu.rice.cs.cunit.classFile.constantPool.visitors.ADefaultPoolInfoVisitor
asciizCase, classCase, doubleCase, emptyCase, fieldCase, floatCase, intCase, interfaceMethodCase, 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 CheckLongVisitor _instance
Singleton instance.

Constructor Detail

CheckLongVisitor

private CheckLongVisitor()
Singleton constructor.

Method Detail

singleton

public static CheckLongVisitor singleton()
Singleton accessor.

Returns:
singleton

defaultCase

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

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

longCase

public LongPoolInfo longCase(LongPoolInfo host,
                             java.lang.Object o)
Return host.

Specified by:
longCase in interface IPoolInfoVisitor<LongPoolInfo,java.lang.Object>
Overrides:
longCase in class ADefaultPoolInfoVisitor<LongPoolInfo,java.lang.Object>
Parameters:
host - Long host
o - not used
Returns:
host