Home » openjdk-7 » com.sun » jdi » [javadoc | source]
public interface: LocalVariable [javadoc | source]

All Implemented Interfaces:
    Mirror, Comparable

All Known Implementing Classes:
    LocalVariableImpl, LocalVariableImpl

A local variable in the target VM. Each variable declared within a Method has its own LocalVariable object. Variables of the same name declared in different scopes have different LocalVariable objects. LocalVariables can be used alone to retrieve static information about their declaration, or can be used in conjunction with a StackFrame to set and get values.
Method from com.sun.jdi.LocalVariable Summary:
equals,   genericSignature,   hashCode,   isArgument,   isVisible,   name,   signature,   type,   typeName
Method from com.sun.jdi.LocalVariable Detail:
 public boolean equals(Object obj)
    Compares the specified Object with this LocalVariable for equality.
 public String genericSignature()
    Gets the generic signature for this variable if there is one. Generic signatures are described in the The Java™ Virtual Machine Specification.
 public int hashCode()
    Returns the hash code value for this LocalVariable.
 public boolean isArgument()
    Determines if this variable is an argument to its method.
 public boolean isVisible(StackFrame frame)
 public String name()
    Gets the name of the local variable.
 public String signature()
    Gets the JNI signature of the local variable.
 public Type type() throws ClassNotLoadedException
    Returns the type of this variable. Where the type is the type specified in the declaration of this local variable.

    Note: if the type of this variable is a reference type (class, interface, or array) and it has not been created or loaded by the class loader of the enclosing class, then ClassNotLoadedException will be thrown. Also, a reference type may have been loaded but not yet prepared, in which case the type will be returned but attempts to perform some operations on the returned type (e.g. fields() ) will throw a ClassNotPreparedException . Use ReferenceType#isPrepared() to determine if a reference type is prepared.

 public String typeName()
    Returns a text representation of the type of this variable. Where the type is the type specified in the declaration of this local variable.

    This type name is always available even if the type has not yet been created or loaded.