new ObjectType(cls, isArray)
- Source:
Represents a type for a given class.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
cls |
string | The class name |
|
isArray |
boolean |
false
|
The array flag |
Methods
isString() → {boolean}
- Source:
To check if the current type is a Java String
Returns:
- Returns TRUE if the type is a Java String, else FALSE
- Type
- boolean
signature() → {string}
- Source:
To make the signature of the current type instance It has one of these forms : - "" if the current type is an Integer - "[]" if the current type is an array of Integer
Returns:
- Returns the signature of the type
- Type
- string
toJsonObject() → {Object}
- Source:
To make an instance of Object which not contain circular reference and which are ready to be serialized.
Returns:
- Returns an Object instance representing the type
- Type
- Object