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

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

public class CheckMethodVisitor
extends ADefaultPoolInfoVisitor<MethodPoolInfo,java.lang.Object>

Check that the host is a method info.

Author:
Mathias Ricken

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

Constructor Detail

CheckMethodVisitor

private CheckMethodVisitor()
Singleton constructor.

Method Detail

singleton

public static CheckMethodVisitor singleton()
Singleton accessor.

Returns:
singleton

defaultCase

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

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

methodCase

public MethodPoolInfo methodCase(MethodPoolInfo host,
                                 java.lang.Object o)
Case for method info.

Specified by:
methodCase in interface IPoolInfoVisitor<MethodPoolInfo,java.lang.Object>
Overrides:
methodCase in class ADefaultPoolInfoVisitor<MethodPoolInfo,java.lang.Object>
Parameters:
host - method info
o - not used
Returns:
visitor-specific return value