All Packages Class Hierarchy This Package Previous Next Index
Interface aioli.vtp.Arity
- public interface Arity
- extends Serializable
This interface represents a collection of possible arity:
- list (+ and *),
- fixed and
- atomic.
-
INT
- Represents an integer atomic operator
-
METAVAR
- Represents a meta atomic operator
-
NULL
- Represents a atomic singleton operator
-
STRING
- Represents a string atomic operator
-
TREE
- Represents a non atomic operator
-
atomp()
- Checks if it is an atom arity tree.
-
fixedp()
- Checks if it is a fixed arity.
-
getarity()
- When the arity is fixed returns the number
of sons accepted.
-
gettype()
- Returns the type of arity.
-
pluslistp()
- Checks if it is a plus list.
-
starlistp()
- Checks if it is a star list.
NULL
public static final int NULL
- Represents a atomic singleton operator
INT
public static final int INT
- Represents an integer atomic operator
STRING
public static final int STRING
- Represents a string atomic operator
METAVAR
public static final int METAVAR
- Represents a meta atomic operator
TREE
public static final int TREE
- Represents a non atomic operator
starlistp
public abstract boolean starlistp()
- Checks if it is a star list.
pluslistp
public abstract boolean pluslistp()
- Checks if it is a plus list.
atomp
public abstract boolean atomp()
- Checks if it is an atom arity tree.
fixedp
public abstract boolean fixedp()
- Checks if it is a fixed arity.
getarity
public abstract int getarity()
- When the arity is fixed returns the number
of sons accepted.
- Returns:
- The number of sons allowed by the operator
if fixed otherwise 0.
gettype
public abstract int gettype()
- Returns the type of arity.
- Returns:
- The type of the arity.
All Packages Class Hierarchy This Package Previous Next Index