Inherits QoreObjectWrapper.
|
|
| Type (QoreObject obj) throws Throwable |
| | creates the object as a wrapper for the Qore object
|
| |
| | Type (String typestr) throws Throwable |
| | Creates the type from the given string.
|
| |
| String | getName () throws Throwable |
| | returns the type's name
|
| |
| boolean | isEqual (Type type) throws Throwable |
| | Returns True if the Type object passed as an argument is equal to the current object; False if not.
|
| |
| boolean | isOutputCompatible (Type type) throws Throwable |
| | Returns True if the output of the Type object passed as an argument is compatible with the return type if the current Type.
|
| |
| boolean | isCompatible (Type type) throws Throwable |
| | Returns True if the argument type is compatible with the current type (inputs and outputs)
|
| |
| boolean | isAssignableFrom (Type type) throws Throwable |
| | Returns True if the output of the Type object passed as an argument is compatible with the input type if the current Type.
|
| |
| Object | acceptsValue (Object value) throws Throwable |
| | Returns the value after any conversions by the type.
|
| |
| int | isAssignableFrom (Object value) throws Throwable |
| | Returns True if the Type object can be assigned from the value given as an argument.
|
| |
| int | getBaseTypeCode () throws Throwable |
| | Returns the base type code for the type or Qore::NT_ALL for those that don't have types.
|
| |
| HashMap< String, Boolean > | getAcceptTypeHash () throws Throwable |
| | Returns a hash of types accepted by this type.
|
| |
| HashMap< String, Boolean > | getReturnTypeHash () throws Throwable |
| | Returns a hash of types returned by this type.
|
| |
| boolean | canConvertToScalar () throws Throwable |
| | Returns True if values of this type can be converted to a scalar value.
|
| |
| boolean | hasDefaultValue () throws Throwable |
| | Returns True if this type has a default value.
|
| |
| Object | getDefaultValue () throws Throwable |
| | Returns the default value for the type or nothing if the type has no default value.
|
| |
| boolean | isOrNothingType () throws Throwable |
| | Returns true if the type accepts and returns nothing in addition to other values.
|
| |
| Type | getBaseType () throws Throwable |
| | Returns the base type for the current type; if the type is already a base type (i.e. not an "or nothing" type), then the same type is returned.
|
| |
| Type | getOrNothingType () throws Throwable |
| | Returns the "or nothing" type for the current type; if the type is already an "or nothing" type (i.e. it already accepts nothing), then the same type is returned.
|
| |
| Type | getElementType () throws Throwable |
| | Returns the element type for complex list and hash types, if any, otherwise returns nothing.
|
| |
| boolean | isTypedHash () throws Throwable |
| | Returns true if the type is a TypedHash type, false if not.
|
| |
| boolean | hasType () throws Throwable |
| | Returns true if the type is not a wildcard type; i.e. has type restrictions.
|
| |
Java wrapper for the Qore::Reflection::Type class in Qore.
- Note
- Loads and initializes the Qore library, the jni module, and the reflection module in static initialization if necessary
- Deprecated:
- Use dynamic imports instead:
import qoremod.reflection.Type;