All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.AOperator
java.lang.Object
|
+----aioli.vtp.AOperator
- public class AOperator
- extends Object
- implements Operator
Implementation of an atomic operator.
- See Also:
- Operator
-
AOperator(String, Formalism, int)
- Creates an atomic operator.
-
arity()
-
Gives the arity of the operator.
-
atomic()
- Checks if the operator is atomic.
-
belongs(Phylum)
-
Checks if an operator belongs to a given phylum.
-
formalism()
-
Returns the formalism of the operator.
-
genDTD(PrintWriter)
-
-
genJava(PrintWriter, String)
-
Generates some Java code that correspond to the definition
of the operator.
-
getCode()
- Returns the code of the operator.
-
name()
-
Gives the name of the operator.
-
phylum(int)
-
Returns the phylum of a given son.
-
setCode(int)
- Sets the code of the operator.
-
toString()
- Gives a Metal representation of the atomic operator.
-
tree()
-
Returns a dummy tree with this operator as head operator.
AOperator
public AOperator(String n,
Formalism f,
int types)
- Creates an atomic operator. Inserts it in the given formalism
- Parameters:
- n - is the name of the operator.
- f - is the formalism where it has to be added.
- types - is the type of the atomic value.
getCode
public int getCode()
- Returns the code of the operator.
- Returns:
- The code (int) of the operator.
setCode
public void setCode(int a)
- Sets the code of the operator.
- Parameters:
- a - an int representing the code of the operator.
arity
public Arity arity()
- Gives the arity of the operator.
- Returns:
- The arity of the operator.
- See Also:
- Arity
name
public String name()
- Gives the name of the operator.
- Returns:
- The name (a String) of the operator.
atomic
public boolean atomic()
- Checks if the operator is atomic.
- Returns:
- Always true it's an atomic operator.
belongs
public boolean belongs(Phylum ph)
- Checks if an operator belongs to a given phylum.
param ph A Phylum.
- Returns:
- true if the operator belongs to the phylum ph false otherwise.
- See Also:
- Phylum
formalism
public Formalism formalism()
- Returns the formalism of the operator.
- Returns:
- A Formalism.
- See Also:
- Formalism
phylum
public Phylum phylum(int n)
- Returns the phylum of a given son.
- Parameters:
- m - Denotes the son.
- Returns:
- Always null it's an atomic operator.
tree
public Tree tree()
- Returns a dummy tree with this operator as head operator.
- Returns:
- A tree.
- See Also:
- tree
toString
public String toString()
- Gives a Metal representation of the atomic operator.
- Overrides:
- toString in class Object
genJava
public void genJava(PrintWriter ps,
String str)
- Generates some Java code that correspond to the definition
of the operator.
- Parameters:
- ps - The output Writer.
- str - The formalism name.
genDTD
public void genDTD(PrintWriter ps)
All Packages Class Hierarchy This Package Previous Next Index