edu.umd.cs.findbugs.ba.ir
Class ExtendedInstruction

java.lang.Object
  extended by org.apache.bcel.generic.Instruction
      extended by edu.umd.cs.findbugs.ba.ir.ExtendedInstruction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
NullCheck, PushException

public abstract class ExtendedInstruction
extends org.apache.bcel.generic.Instruction

"Extended" Instruction class for synthetic instructions used in the register-based IR. The only additional functionality is being able to accept an ExtendedVisitor.

Note: this class is just an idea sketch. There is no guarantee it will ever be used for anything.

Author:
David Hovemeyer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.bcel.generic.Instruction
length, opcode
 
Constructor Summary
ExtendedInstruction(short opcode, short len)
           
 
Method Summary
abstract  void accept(ExtendedVisitor visitor)
           
 void accept(org.apache.bcel.generic.Visitor visitor)
           
 int hashCode()
           
 
Methods inherited from class org.apache.bcel.generic.Instruction
consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedInstruction

public ExtendedInstruction(short opcode,
                           short len)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

accept

public void accept(org.apache.bcel.generic.Visitor visitor)
Specified by:
accept in class org.apache.bcel.generic.Instruction

accept

public abstract void accept(ExtendedVisitor visitor)