JType class
A Java type, as the JNI descriptor that denotes it.
Every way of making one produces a well-formed descriptor, so the L…;
wrapper and the dots-to-slashes conversion cannot be forgotten.
Constructors
- JType.of(String className)
-
A class type by name, dotted or slashed. Nested classes keep their
$.factory - JType.parse(String source)
-
Parses a Java type as it is written in source:
int,String,java.util.List,byte[],int[][],List<String>.factory
Properties
- array → JType
-
This type as an array of itself:
intbecomesint[].no setter - descriptor → String
-
The JNI descriptor:
I,Ljava/lang/String;,[[D.final - hashCode → int
-
The hash code for this object.
no setteroverride
- isPrimitive → bool
-
truewhen this is one of the eight primitives.no setter - isReference → bool
-
truewhen this is a class or array type.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- boolean → const JType
- boxedBoolean → const JType
- boxedByte → const JType
- boxedChar → const JType
- boxedDouble → const JType
- boxedFloat → const JType
- boxedInt → const JType
- boxedLong → const JType
- boxedShort → const JType
- byte → const JType
- char → const JType
- charSequence → const JType
- clazz → const JType
- double_ → const JType
- float → const JType
- int_ → const JType
- long → const JType
- number → const JType
- object → const JType
- short → const JType
- string → const JType
- throwable → const JType
- void_ → const JType
- Only ever valid as a return type.