|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.logic.sign.type.Types
public final class Types
Manager for type system and factories.
Manages the current type system
of your system.
Simple applications will generally use getDefault()
to get the current
system default type system. While applications that require more control over
the particular arithmetic object implementations will get their own instance
of TypeSystem
and configure it according to their needs.
Property Name | Property Value |
---|---|
orbital.logic.sign.type.TypeSystem.default | class name of the initial default TypeSystem implementation returned by getDefault() . |
TypeSystem
Field Summary | |
---|---|
static Type |
INDIVIDUAL
The type ι of individuals ( objects ). |
static Type |
TRUTH
The type ο = () of truth-values. |
Method Summary | |
---|---|
static int |
arityOf(Type type)
Get the number of components n of a product type ∏iτi = τ1×…×τn. |
static Type |
declaredTypeOf(Functor f)
Converts a functor specification to a type (guesses it from the declared type information). |
static TypeSystem |
getDefault()
Get the (single) default type system instance. |
static boolean |
isApplicableTo(Type compositorType,
Expression[] args)
Checks whether the type specification is compatible with the given list of arguments. |
static void |
setDefault(TypeSystem newTypeSystem)
Set the (single) default type system instance. |
static java.lang.String |
toTypedString(Typed s)
Get a string describing a typed object and its type. |
static java.lang.String |
toTypedString(Typed[] s)
|
static Type |
typeOf(java.lang.Object args)
Guesses the type of an object. |
static Type |
typeOf(Typed[] args)
Returns the type of a list of arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Type INDIVIDUAL
objects
).
public static final Type TRUTH
Method Detail |
---|
public static final TypeSystem getDefault()
setDefault(TypeSystem)
public static final void setDefault(TypeSystem newTypeSystem)
newTypeSystem
- the new default factory of this Virtual Machine.getDefault()
public static final boolean isApplicableTo(Type compositorType, Expression[] args)
compositorType
- the type of the compositor to apply to the arguments.args
- the arguments to check for compatibility with this symbol.
null
, or an array of length 0 can be used for zero arguments.
Type.on(Type)
,
Type.subtypeOf(Type)
,
Functor.Specification.isApplicableTo(Object[])
public static final int arityOf(Type type)
public static final Type typeOf(Typed[] args)
args
- the arguments whose (combined) type to return.
null
, or an array of length 0 can be used for zero arguments.TypeSystem.product(Type[])
,
Typed.getType()
public static final Type typeOf(java.lang.Object args)
public static final Type declaredTypeOf(Functor f) throws java.beans.IntrospectionException
static final Type logicalTypeDeclaration;
java.beans.IntrospectionException
- if an exception occurs during introspection.Functor.Specification.getSpecification(orbital.logic.functor.Functor)
public static final java.lang.String toTypedString(Typed s)
Object.toString()
,
Typed.getType()
public static final java.lang.String toTypedString(Typed[] s)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |