All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.LPhylum
java.lang.Object
|
+----aioli.vtp.LPhylum
- public class LPhylum
- extends Object
- implements Phylum
A class that implememts a phylum.
- See Also:
- Phylum
-
LPhylum(String, Formalism)
- The phylum constructor.
-
contains(Operator)
-
Checks if an operator belongs to a phylum.
-
formalism()
- Returns the formalism of the phylum.
-
genDTD(PrintWriter)
-
-
genJava(PrintWriter, String)
- Prints the java declaration of the phylum.
-
genJavaInsert(PrintWriter, String)
-
Prints the java insertion of the operators in the phylum.
-
insert(Operator)
- Inserts an operator to the formalism.
-
insertCheck(Operator)
- Inserts an operator to the phylum.
Checks if the operator is added twice (checks the only name).
-
name()
- Returns the name of the phylum
-
operators()
-
Returns the list of the operators, this list can be safely modified.
-
toString()
- Returns the Metal version of the phylum
LPhylum
public LPhylum(String n,
Formalism f)
- The phylum constructor.
- Parameters:
- n - The name of the phylum.
- f - The formalism the phylum had to be added to.
- See Also:
- Formalism
contains
public boolean contains(Operator op)
- Checks if an operator belongs to a phylum.
- Parameters:
- op - The operator.
- Returns:
- true if op belongs to the phylum, false otherwise.
formalism
public Formalism formalism()
- Returns the formalism of the phylum.
insert
public void insert(Operator op)
- Inserts an operator to the formalism.
- Parameters:
- op - The operator to be added.
insertCheck
public boolean insertCheck(Operator op)
- Inserts an operator to the phylum.
Checks if the operator is added twice (checks the only name).
- Parameters:
- op - The operator to be added.
- Returns:
- true if op has been inserted false otherwise.
operators
public Operator[] operators()
- Returns the list of the operators, this list can be safely modified.
name
public String name()
- Returns the name of the phylum
toString
public String toString()
- Returns the Metal version of the phylum
- Overrides:
- toString in class Object
genJava
public void genJava(PrintWriter ps,
String str)
- Prints the java declaration of the phylum.
- Parameters:
- ps - The output Writer.
- str - The phylum name.
genJavaInsert
public void genJavaInsert(PrintWriter ps,
String str)
- Prints the java insertion of the operators in the phylum.
- Parameters:
- ps - The output Writer.
- str - The phylum name.
genDTD
public void genDTD(PrintWriter ps)
All Packages Class Hierarchy This Package Previous Next Index