All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.LFormalism
java.lang.Object
|
+----aioli.vtp.LFormalism
- public class LFormalism
- extends Object
- implements Formalism
A class that implement a formalism.
- See Also:
- Formalism
-
LFormalism(String)
- The formalism constructor.
-
beginOperator()
-
-
beginPhylum()
-
-
checkOperator(String)
-
Checks if an operator belongs to the formalism.
-
checkPhylum(String)
-
Checks if a phylum belongs to the formalism.
-
genDTD(PrintWriter)
- Returns the DTD version of the formalism name
-
genJava(PrintWriter)
-
Generates some Java code that correspond to the definition
of the formalism.
-
insert(Operator)
-
Adds an operator to a formalism.
-
insert(Phylum)
-
Adds a phylum to a formalism.
-
insertCheck(Operator)
-
Adds an operator to a formalism.
-
insertCheck(Phylum)
-
Adds a phylum to a formalism.
-
name()
- Returns the name of the formalism
-
operator(String)
-
Gets an operator from the formalism by its name.
-
phylum(String)
-
Gets a phylum from the formalism by its name.
-
toString()
- Returns the Metal version of the formalism
LFormalism
public LFormalism(String n)
- The formalism constructor.
- Parameters:
- n - The name of the formalism.
insert
public void insert(Operator elem)
- Adds an operator to a formalism.
- Parameters:
- op - The operator to be added.
- See Also:
- operator
insertCheck
public boolean insertCheck(Operator op)
- Adds an operator to a formalism.
First checks if the operator is yet in the formalism.
- Parameters:
- op - The operator to be added.
- Returns:
- true if op is inserted, false if op is yet in the formalism.
insert
public void insert(Phylum ph)
- Adds a phylum to a formalism.
- Parameters:
- ph - The phylum to be added.
- See Also:
- phylum
insertCheck
public boolean insertCheck(Phylum ph)
- Adds a phylum to a formalism.
First checks if the phylum is yet in the formalism.
- Parameters:
- ph - The phylum to be added.
- Returns:
- true if ph is inserted, false if ph is yet in the formalism.
operator
public Operator operator(String elem)
- Gets an operator from the formalism by its name.
- Parameters:
- name - The name of the operator.
- Returns:
- The operator if it exists otherwise null.
checkOperator
public Operator checkOperator(String name)
- Checks if an operator belongs to the formalism.
- Parameters:
- name - The name of the operator.
- Returns:
- The operator or null
phylum
public Phylum phylum(String name)
- Gets a phylum from the formalism by its name.
- Parameters:
- name - The name of the phylum.
- Returns:
- The phylum if it exists otherwise null.
checkPhylum
public Phylum checkPhylum(String name)
- Checks if a phylum belongs to the formalism.
- Parameters:
- name - is the name of the phylum.
- Returns:
- The phylum if it exists otherwise null.
name
public String name()
- Returns the name of the formalism
beginOperator
public OperatorIterator beginOperator()
- Returns:
- An OperatorIterator positioned on the first element.
beginPhylum
public PhylumIterator beginPhylum()
- Returns:
- An PhylumIterator positioned on the first element.
toString
public String toString()
- Returns the Metal version of the formalism
- Overrides:
- toString in class Object
genJava
public void genJava(PrintWriter ps)
- Generates some Java code that correspond to the definition
of the formalism.
- Parameters:
- ps - The output Writer.
genDTD
public void genDTD(PrintWriter ps)
- Returns the DTD version of the formalism name
All Packages Class Hierarchy This Package Previous Next Index