Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Compil3r.BytecodeAnalysis
Class Bytecodes.FieldInstruction  view Bytecodes.FieldInstruction download Bytecodes.FieldInstruction.java

java.lang.Object
  extended byCompil3r.BytecodeAnalysis.Bytecodes.Instruction
      extended byCompil3r.BytecodeAnalysis.Bytecodes.CPInstruction
          extended byCompil3r.BytecodeAnalysis.Bytecodes.FieldOrMethod
              extended byCompil3r.BytecodeAnalysis.Bytecodes.FieldInstruction
All Implemented Interfaces:
Bytecodes.LoadClass, Bytecodes.TypedInstruction, java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
Bytecodes.GETFIELD, Bytecodes.GETSTATIC, Bytecodes.PUTFIELD, Bytecodes.PUTSTATIC
Enclosing class:
Bytecodes

public abstract static class Bytecodes.FieldInstruction
extends Bytecodes.FieldOrMethod
implements Bytecodes.TypedInstruction


Field Summary
 
Fields inherited from class Compil3r.BytecodeAnalysis.Bytecodes.CPInstruction
index, o
 
Fields inherited from class Compil3r.BytecodeAnalysis.Bytecodes.Instruction
length, opcode
 
Constructor Summary
(package private) Bytecodes.FieldInstruction()
          Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
protected Bytecodes.FieldInstruction(short opcode, Clazz.jq_Field f)
           
 
Method Summary
 Clazz.jq_Field getField()
           
 java.lang.String getFieldName()
           
protected  int getFieldSize()
           
 Clazz.jq_Type getFieldType()
           
 Clazz.jq_Type getType()
          Returns the type associated with this instruction.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class Compil3r.BytecodeAnalysis.Bytecodes.FieldOrMethod
getClassName, getClassType, getLoadClassType, getName, getSignature, initFromFile
 
Methods inherited from class Compil3r.BytecodeAnalysis.Bytecodes.CPInstruction
dump, getIndex, getObject, setIndex, setObject, toString
 
Methods inherited from class Compil3r.BytecodeAnalysis.Bytecodes.Instruction
accept, consumeStack, copy, dispose, getLength, getOpcode, produceStack, readInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bytecodes.FieldInstruction

Bytecodes.FieldInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.


Bytecodes.FieldInstruction

protected Bytecodes.FieldInstruction(short opcode,
                                     Clazz.jq_Field f)
Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class Bytecodes.CPInstruction

getField

public Clazz.jq_Field getField()

getFieldSize

protected int getFieldSize()

getType

public Clazz.jq_Type getType()
Description copied from interface: Bytecodes.LoadClass
Returns the type associated with this instruction. LoadClass instances are always typed, but this type does not always refer to the type of the class or interface that it possibly forces to load. For example, GETFIELD would return the type of the field and not the type of the class where the field is defined. If no class is forced to be loaded, null is returned. An example for this is an ANEWARRAY instruction that creates an int[][].

Specified by:
getType in interface Bytecodes.TypedInstruction
Overrides:
getType in class Bytecodes.CPInstruction

getFieldType

public Clazz.jq_Type getFieldType()

getFieldName

public java.lang.String getFieldName()