org.oXML.type
Class Type
java.lang.Object
org.oXML.type.Type
- Direct Known Subclasses:
- NodesetType, TrustedType
- public class Type
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MAX_TYPE_DISTANCE
public static final int MAX_TYPE_DISTANCE
- See Also:
- Constant Field Values
Type
public Type(Name name)
Type
public Type(Name name,
Type[] parents)
getConstructors
public Function[] getConstructors()
addConstructor
public void addConstructor(Function ctor)
addParent
public void addParent(Type parent)
addVariable
public void addVariable(Name variable)
getVariables
public Name[] getVariables()
addFunction
public void addFunction(Function function)
isFinal
public boolean isFinal()
getName
public Name getName()
getParentTypes
public Type[] getParentTypes()
instanceOf
public boolean instanceOf(Type other)
distance
public int distance(Type other,
int max)
getFunction
public Function getFunction(Name name,
Type[] params)
getFunctions
public Functions getFunctions()
equals
public boolean equals(java.lang.Object other)
equals
public boolean equals(Type other)
- two types are equal iff they have the same name
toString
public java.lang.String toString()