alt.jiapi.reflect.instruction
Class ReferencingInstruction

java.lang.Object
  extended by alt.jiapi.reflect.Instruction
      extended by alt.jiapi.reflect.instruction.CPInstruction
          extended by alt.jiapi.reflect.instruction.ReferencingInstruction
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
FieldAccess, Invocation

public class ReferencingInstruction
extends CPInstruction

This class represents an Instruction, that uses Object references.

Version:
$Revision: 1.18 $ $Date: 2006/01/31 11:11:42 $
Author:
Mika Riekkinen, Joni Suominen

Field Summary
 
Fields inherited from class alt.jiapi.reflect.instruction.CPInstruction
cp
 
Constructor Summary
ReferencingInstruction(byte[] bytes, ConstantPool cp)
           
 
Method Summary
 java.lang.String getClassName()
          Get a name of the referenced class's type.
 java.lang.String getDescriptor()
          Get a signature of the reference (e.g.
 java.lang.String getInternalName()
          Get an internal name of referenced type
 java.lang.String getName()
          Get a name of the reference (e.g.
 java.lang.String getReferencedTypeName()
          Gets name of the referenced type.
 
Methods inherited from class alt.jiapi.reflect.instruction.CPInstruction
getConstantPool, getEntry, getIndex, replaceConstantPool, toString
 
Methods inherited from class alt.jiapi.reflect.Instruction
getAttribute, getBytes, getOffset, getOpcode, length, setAttribute, setAttribute, setBytes, setOffset, stackConsumption, stackUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferencingInstruction

public ReferencingInstruction(byte[] bytes,
                              ConstantPool cp)
Method Detail

getClassName

public java.lang.String getClassName()
Get a name of the referenced class's type.


getDescriptor

public java.lang.String getDescriptor()
Get a signature of the reference (e.g. method's signature or field's signature).


getInternalName

public java.lang.String getInternalName()
Get an internal name of referenced type


getName

public java.lang.String getName()
Get a name of the reference (e.g. method name or field name).


getReferencedTypeName

public java.lang.String getReferencedTypeName()
Gets name of the referenced type. This method inspects instruction directly to determine type of the referenced Object.

Returns:
name of the referenced type.


Copyright © 2001. Documenation generated August 26 2011.