new BasicType(raw_type, isArray)
- Source:
To represent a primitive type
Parameters:
Name | Type | Default | Description |
---|---|---|---|
raw_type |
string | The raw name of the type as it can be found in Smali code |
|
isArray |
boolean |
false
|
Array flag should be TRUE if the type is an array, else FALSE |
Methods
isArray() → {boolean}
- Source:
To check if the current type is an array
Returns:
- Returns TRUE if the type is an array, else FALSE
- Type
- boolean
isNumeric() → {boolean}
- Source:
To check if the current type is numeric (integer, long or short)
Returns:
- Returns TRUE if the type is integer or long or short, else FALSE
- Type
- boolean
isVoid() → {boolean}
- Source:
To check if the current type is Void
Returns:
- Returns TRUE if the type is Void, 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