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 * type 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™ 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 *
118 * See {@link StackFrame#visibleVariables} for a complete description
119 * variable visibility in this interface.
120 *
121 * @param frame the StackFrame querying visibility
122 * @return <code>true</code> if this variable is visible;
123 * <code>false</code> otherwise.
124 * @throws IllegalArgumentException if the stack frame's method
125 * does not match this variable's method.
|
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 * type 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 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 *
118 * See {@link StackFrame#visibleVariables} for a complete description
119 * variable visibility in this interface.
120 *
121 * @param frame the StackFrame querying visibility
122 * @return <code>true</code> if this variable is visible;
123 * <code>false</code> otherwise.
124 * @throws IllegalArgumentException if the stack frame's method
125 * does not match this variable's method.
|