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. {@link ReferenceType#fields() fields()}) will throw a {@link ClassNotPreparedException}. Use {@link ReferenceType#isPrepared()} to determine ifa reference type is prepared.
@see Type
@see Field#type() Field.type() - for usage examples
@return the {@link Type} of this local variable.
@throws ClassNotLoadedException if the type has not yet been loadedthrough the appropriate class loader.