< prev index next >

src/jdk.jdi/share/classes/com/sun/jdi/LocalVariable.java

Print this page
rev 58770 : [mq]: svc-spec-update


  75      * interface, or array) and it has not been created or loaded
  76      * by the class loader of the enclosing class,
  77      * then ClassNotLoadedException will be thrown.
  78      * Also, a reference type may have been loaded but not yet prepared,
  79      * in which case the type will be returned
  80      * but attempts to perform some operations on the returned type
  81      * (e.g. {@link ReferenceType#fields() fields()}) will throw
  82      * a {@link ClassNotPreparedException}.
  83      * Use {@link ReferenceType#isPrepared()} to determine if
  84      * a reference type is prepared.
  85      *
  86      * @see Type
  87      * @see Field#type() Field.type() - for usage examples
  88      * @return the {@link Type} of this local variable.
  89      * @throws ClassNotLoadedException if the type has not yet been loaded
  90      * through the appropriate class loader.
  91      */
  92     Type type() throws ClassNotLoadedException;
  93 
  94     /**
  95      * Gets the JNI signature of the local variable.

  96      *
  97      * @see <a href="doc-files/signature.html">Type Signatures</a>
  98      * @return a string containing the signature.
  99      */
 100     String signature();
 101 
 102     /**
 103      * Gets the generic signature for this variable if there is one.
 104      * Generic signatures are described in the
 105      * <cite>The Java&trade; Virtual Machine Specification</cite>.
 106      *
 107      * @return a string containing the generic signature, or <code>null</code>
 108      * if there is no generic signature.
 109      *
 110      * @since 1.5
 111      */
 112     String genericSignature();
 113 
 114     /**
 115      * Determines whether this variable can be accessed from the given
 116      * {@link StackFrame}.
 117      *




  75      * interface, or array) and it has not been created or loaded
  76      * by the class loader of the enclosing class,
  77      * then ClassNotLoadedException will be thrown.
  78      * Also, a reference type may have been loaded but not yet prepared,
  79      * in which case the type will be returned
  80      * but attempts to perform some operations on the returned type
  81      * (e.g. {@link ReferenceType#fields() fields()}) will throw
  82      * a {@link ClassNotPreparedException}.
  83      * Use {@link ReferenceType#isPrepared()} to determine if
  84      * a reference type is prepared.
  85      *
  86      * @see Type
  87      * @see Field#type() Field.type() - for usage examples
  88      * @return the {@link Type} of this local variable.
  89      * @throws ClassNotLoadedException if the type has not yet been loaded
  90      * through the appropriate class loader.
  91      */
  92     Type type() throws ClassNotLoadedException;
  93 
  94     /**
  95      * Gets the <a href="{@docRoot}/../specs/jni/types.html#type-signatures">
  96      * JNI-style signature</a> of the local variable.
  97      *

  98      * @return a string containing the signature.
  99      */
 100     String signature();
 101 
 102     /**
 103      * Gets the generic signature for this variable if there is one.
 104      * Generic signatures are described in the
 105      * <cite>The Java&trade; Virtual Machine Specification</cite>.
 106      *
 107      * @return a string containing the generic signature, or <code>null</code>
 108      * if there is no generic signature.
 109      *
 110      * @since 1.5
 111      */
 112     String genericSignature();
 113 
 114     /**
 115      * Determines whether this variable can be accessed from the given
 116      * {@link StackFrame}.
 117      *


< prev index next >