Struct ejni::Class

source · []
pub struct Class<'a> {
    pub class: JClass<'a>,
    /* private fields */
}
Expand description

Class describes java.lang.Class, with getters for often used classes from the Java standard library.

Fields

class: JClass<'a>

The underlying JClass

Implementations

Create a new Class from it’s raw compontents

java.lang.Byte

java.lang.Boolean

java.lang.Float

java.lang.Integer

java.lang.Double

java.lang.Short

java.lang.Character

java.lang.Long

java.lang.Object

java.lang.Class

java.lang.System

java.lang.CharSequence

java.lang.Math

java.lang.Record

java.lang.String

java.lang.StringBuilder

java.math.BigDecimal

java.math.BigInteger

java.lang.reflect.Array

java.lang.reflect.Field

java.lang.reflect.Method

java.lang.reflect.Constructor

java.util.Uuid

java.util.Vector

java.util.Map.Entry

java.util.Set

java.util.Scanner

java.util.Queue

java.util.Random

java.util.Properties

java.util.Optional

java.util.Objects

java.util.Map

java.util.Locale

java.util.List

java.util.LinkedList

java.util.LinkedHashSet

java.util.LinkedHashMap

java.util.Iterator

java.util.IdentityHashMap

java.util.HashTable

java.util.HashSet

java.util.HashMap

java.util.EnumSet

java.util.EnumMap

java.util.Enumeration

java.util.Comparator

java.util.Comparators

java.util.Collection

java.util.Base64

java.util.Arrays

java.util.ArrayList

java.util.concurrent.atomic.AtomicInteger

java.util.concurrent.atomic.AtomicLong

java.util.concurrent.atomic.AtomicReference

java.util.concurrent.atomic.AtomicIntegerArray

java.util.concurrent.atomic.AtomicIntegerFieldUpdater

java.util.Data

java.net.URI

java.util.concurrent.atomic.AtomicLongArray

java.util.concurrent.atomic.AtomicLongFieldUpdater

java.util.concurrent.atomic.AtomicMarkableReference

java.util.concurrent.atomic.AtomicReferenceArray

java.util.concurrent.atomic.AtomicReferenceFieldUpdater

java.util.concurrent.atomic.DoubleAccumulator

java.util.concurrent.atomic.DoubleAdder

java.util.concurrent.atomic.LongAccumulator

java.util.concurrent.atomic.LongAdder

java.util.concurrent.atomic.Striped64

java.util.concurrent.Future

java.util.concurrent.TimeUnit

java.util.regex.Pattern

java.util.regex.Matcher

java.time.Duration

java.time.Instant

java.io.File

java.io.InputStream

java.io.OutputStream

sun.misc.Unsafe

Find a class by it’s Java name. Can be in the format:

  • java/lang/String
  • java.lang.String

Get the array type of a class. E.g java.lang.String results in java.lang.String[]

Check if the current Class can be safely cast to the the other Class. E.g java.util.HashMap is compatible with java.util.Map

Get the superclass of the current Class. Returns None if the current class has no superclass other than java.lang.Object, or if the current Class is an interface

Get the Class name. Invokes Class#getName()

The Java primitive int

The Java primitive long

The Java primitive byte

The Java primitive boolean

The Java primitive float

The Java primitive double

The Java primitive short

The Java primitive char

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Look up the concrete type from the JVM.

Converts to this type from the input type.

Converts this type into the (usually inferred) input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Look up the concrete type from the JVM.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.