public final class ClassJc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,ClassJc> |
allClasses
Index of all known reflection-classes valid for this application.
|
private FieldJc[] |
allFields |
private boolean |
bSuperClassChecked |
private java.lang.Class<?> |
clazz
Composition of the Java-original reflection.
|
private java.util.Map<java.lang.String,FieldJc> |
indexNameFields
All fields of this class.
|
private int |
modifier |
private java.lang.String |
name |
static int[] |
nrofBytesScalarTypes
Array contains the number of byte which were used if the scalar types with designation 0..0x17
are stored in a byte structure.
|
static int |
REFLECTION_bitfield
If this designation is used, the bit position and the number of bits are given
in a special field.
|
static int |
REFLECTION_boolean
This type identification should not interpret for a byte or integer image in C language.
|
static int |
REFLECTION_char16
A character in C or in byte structures has 8 bit usually.
|
static int |
REFLECTION_char8
A character in C or in byte structures has 8 bit usually.
|
static int |
REFLECTION_double
Designation of the floating types.
|
static int |
REFLECTION_float
Designation of the floating types.
|
static int |
REFLECTION_int
Deprecated.
|
static int |
REFLECTION_int16 |
static int |
REFLECTION_int32 |
static int |
REFLECTION_int64
Designation of the integer types with defined bit width.
|
static int |
REFLECTION_int8 |
static int |
REFLECTION_String
TODO what is a String in C.
|
static int |
REFLECTION_uint
Deprecated.
|
static int |
REFLECTION_uint16 |
static int |
REFLECTION_uint32 |
static int |
REFLECTION_uint64 |
static int |
REFLECTION_uint8 |
static int |
REFLECTION_void
Designation of type especially in a embedded system in C-programming.
|
private ClassJc |
superClass |
private FieldJc |
superField |
static int |
version
Version, history and license
2015-01-10 Hartmut chg:
getSuperField() . |
Modifier | Constructor and Description |
---|---|
private |
ClassJc(java.lang.Class<?> clazz)
It is private, use
fromClass(Class) |
private |
ClassJc(java.lang.String name,
int modifier) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
fillAllFields() |
static ClassJc |
forName(java.lang.String className)
Creates or gets the Class with the given name.
|
static ClassJc |
fromClass(java.lang.Class<?> clazz)
This operation asserts, that a ClassJc instance for one type is only existent one time.
|
static ClassJc |
getClass(java.lang.Object obj) |
java.lang.Class<?> |
getClazz()
Returns the basic Class like Field.getClass()
|
FieldJc |
getDeclaredField(java.lang.String name) |
FieldJc[] |
getDeclaredFields() |
ClassJc |
getEnclosingClass() |
java.lang.String |
getName() |
ClassJc |
getSuperClass() |
FieldJc |
getSuperField() |
boolean |
isPrimitive() |
static ClassJc |
primitive(java.lang.String className)
Creates or gets the primitive class with the given Name.
|
java.lang.String |
toString() |
public static final int version
getSuperField()
.
nrofBytesScalarTypes
, some correction parallel
to CRuntimeJavalike/.../Jc/ReflectionJc.h,c
private static final java.util.Map<java.lang.String,ClassJc> allClasses
indexNameFields
shouldn't be created newly if the instance of ClassJc is stored.public static final int REFLECTION_void
InspcDataExchangeAccess
uses designation from 0..0xc7 for Strings with upto 200 character
and uses this types in 1 byte with added InspcDataExchangeAccess.kScalarTypes
= 0xe0
public static final int REFLECTION_int64
public static final int REFLECTION_uint64
public static final int REFLECTION_int32
public static final int REFLECTION_uint32
public static final int REFLECTION_int16
public static final int REFLECTION_uint16
public static final int REFLECTION_int8
public static final int REFLECTION_uint8
@Deprecated public static final int REFLECTION_int
REFLECTION_int32
etc.@Deprecated public static final int REFLECTION_uint
REFLECTION_int32
etc.public static final int REFLECTION_float
public static final int REFLECTION_double
public static final int REFLECTION_char8
public static final int REFLECTION_char16
public static final int REFLECTION_String
public static final int REFLECTION_boolean
REFLECTION_int32
etc.public static final int REFLECTION_bitfield
public static final int[] nrofBytesScalarTypes
private final java.lang.Class<?> clazz
private ClassJc superClass
private FieldJc superField
private boolean bSuperClassChecked
private java.util.Map<java.lang.String,FieldJc> indexNameFields
private FieldJc[] allFields
private final int modifier
private final java.lang.String name
private ClassJc(java.lang.Class<?> clazz)
fromClass(Class)
private ClassJc(java.lang.String name, int modifier)
void fillAllFields()
public static ClassJc getClass(java.lang.Object obj)
public static ClassJc fromClass(java.lang.Class<?> clazz)
allClasses
which stores existent class by name.clazz
- public static ClassJc forName(java.lang.String className)
public static ClassJc primitive(java.lang.String className)
public java.lang.String getName()
public FieldJc[] getDeclaredFields()
public FieldJc getDeclaredField(java.lang.String name) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public boolean isPrimitive()
public java.lang.Class<?> getClazz()
public ClassJc getEnclosingClass()
public ClassJc getSuperClass()
public FieldJc getSuperField()
public java.lang.String toString()
toString
in class java.lang.Object