.. java:import:: java.io BufferedWriter .. java:import:: java.io IOException Operator ======== .. java:package:: fr.inria.tapenade.utils :noindex: .. java:type:: public class Operator An operator of Abstract Syntax Trees. Fields ------ ATOM_INT_ARITY ^^^^^^^^^^^^^^ .. java:field:: public static final int ATOM_INT_ARITY :outertype: Operator For atomic operator with an int. ATOM_STRING_ARITY ^^^^^^^^^^^^^^^^^ .. java:field:: public static final int ATOM_STRING_ARITY :outertype: Operator For atomic operator with a String. LIST_ARITY ^^^^^^^^^^ .. java:field:: public static final int LIST_ARITY :outertype: Operator For list arity operator. arity ^^^^^ .. java:field:: public final int arity :outertype: Operator The arity of this operator. .. parsed-literal:: Convention: normal fixed arities range in [0,+inf[; Arity LIST_ARITY = -1 stands for list arity; Arity ATOM_INT_ARITY = -2 stands for atomic operator with an int; Arity ATOM_STRING_ARITY = -3 stands for atomic operator with a String. childrenPhyla ^^^^^^^^^^^^^ .. java:field:: protected final int[] childrenPhyla :outertype: Operator The required phyla for the children. code ^^^^ .. java:field:: public final int code :outertype: Operator A unique integer code for this Operator, which is its rank in the list of all the language's Operator's. name ^^^^ .. java:field:: public final String name :outertype: Operator The name of this Operator. Constructors ------------ Operator ^^^^^^^^ .. java:constructor:: public Operator(String nameStr, int code, int arity, int[] phyla) :outertype: Operator Methods ------- isAtom ^^^^^^ .. java:method:: public boolean isAtom() :outertype: Operator :return: True when this Operator is an atom. isFixed ^^^^^^^ .. java:method:: public boolean isFixed() :outertype: Operator :return: True when this is a fixed-arity Operator. isIntAtom ^^^^^^^^^ .. java:method:: public boolean isIntAtom() :outertype: Operator :return: True when this Operator is an integer-valued atom. isList ^^^^^^ .. java:method:: public boolean isList() :outertype: Operator :return: True when this is a list-arity Operator. isStringAtom ^^^^^^^^^^^^ .. java:method:: public boolean isStringAtom() :outertype: Operator :return: True when this Operator is a String-valued atom. toString ^^^^^^^^ .. java:method:: @Override public String toString() :outertype: Operator tree ^^^^ .. java:method:: public Tree tree() :outertype: Operator Build a Tree with this Operator. :return: a new, empty, Tree node with this Operator. writeToILFile ^^^^^^^^^^^^^ .. java:method:: public void writeToILFile(BufferedWriter fileWriter) throws IOException :outertype: Operator