pub enum JavaType {
Primitive(PrimitiveType),
Instance(String),
GenericInstance(ClassSignature),
TypeVar(String),
Array(Box<JavaType>),
}Expand description
Represents any actual Java type (cannot be void) Used for field descriptors and method parameters
Variants§
Primitive(PrimitiveType)
Instance(String)
GenericInstance(ClassSignature)
TypeVar(String)
Array(Box<JavaType>)
Implementations§
Source§impl JavaType
impl JavaType
pub fn as_allocation_type(&self) -> AllocationType
pub fn get_array_dimension(&self) -> usize
pub fn as_descriptor(&self) -> String
pub fn get_array_element_type(&self) -> Option<&JavaType>
pub fn is_primitive_array(&self) -> bool
Sourcepub fn try_recursive<I>(
it: &mut Peekable<I>,
) -> Result<JavaType, TypeDescriptorErr>
pub fn try_recursive<I>( it: &mut Peekable<I>, ) -> Result<JavaType, TypeDescriptorErr>
Parse a JavaType from a character iterator This cannot parse ‘V’ (void) - will return an error
Trait Implementations§
impl Eq for JavaType
impl StructuralPartialEq for JavaType
Auto Trait Implementations§
impl Freeze for JavaType
impl RefUnwindSafe for JavaType
impl Send for JavaType
impl Sync for JavaType
impl Unpin for JavaType
impl UnsafeUnpin for JavaType
impl UnwindSafe for JavaType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more