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:


Variable Index

 o INT
Represents an integer atomic operator
 o METAVAR
Represents a meta atomic operator
 o NULL
Represents a atomic singleton operator
 o STRING
Represents a string atomic operator
 o TREE
Represents a non atomic operator

Method Index

 o atomp()
Checks if it is an atom arity tree.
 o fixedp()
Checks if it is a fixed arity.
 o getarity()
When the arity is fixed returns the number of sons accepted.
 o gettype()
Returns the type of arity.
 o pluslistp()
Checks if it is a plus list.
 o starlistp()
Checks if it is a star list.

Variables

 o NULL
 public static final int NULL
Represents a atomic singleton operator

 o INT
 public static final int INT
Represents an integer atomic operator

 o STRING
 public static final int STRING
Represents a string atomic operator

 o METAVAR
 public static final int METAVAR
Represents a meta atomic operator

 o TREE
 public static final int TREE
Represents a non atomic operator

Methods

 o starlistp
 public abstract boolean starlistp()
Checks if it is a star list.

 o pluslistp
 public abstract boolean pluslistp()
Checks if it is a plus list.

 o atomp
 public abstract boolean atomp()
Checks if it is an atom arity tree.

 o fixedp
 public abstract boolean fixedp()
Checks if it is a fixed arity.

 o 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.
 o 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