Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.bytecode
Class LocalVariableInfo

java.lang.Object
  extended bynet.sf.jode.bytecode.LocalVariableInfo

public final class LocalVariableInfo
extends java.lang.Object

A simple class containing the info of the LocalVariableTable. This info is stored decentral: every load, store or iinc instruction contains the info for its local. When writing code it will automatically be collected again.
You can't modify a LocalVariableInfo, for this reason they can and will be shared.
This information consists of name, type signature and slot number. There is no public constructor; use the static getInfo() methods instead.


Method Summary
static LocalVariableInfo getInfo(int slot)
          Creates a new local variable info, with no name or type.
static LocalVariableInfo getInfo(int slot, java.lang.String name, java.lang.String type)
          Creates a new local variable info, with given name and type.
 java.lang.String getName()
          Gets the name.
 int getSlot()
          Gets the slot number.
 java.lang.String getType()
          Gets the type signature.
 java.lang.String toString()
          Gets a string representation for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInfo

public static LocalVariableInfo getInfo(int slot)
Creates a new local variable info, with no name or type.

Parameters:
slot - the slot number.

getInfo

public static LocalVariableInfo getInfo(int slot,
                                        java.lang.String name,
                                        java.lang.String type)
Creates a new local variable info, with given name and type.

Parameters:
slot - the slot number.
name - the name of the local.
type - the type signature of the local.

getSlot

public int getSlot()
Gets the slot number.


getName

public java.lang.String getName()
Gets the name.


getType

public java.lang.String getType()
Gets the type signature.

See Also:
TypeSignature

toString

public java.lang.String toString()
Gets a string representation for debugging purposes.


Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.