|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfmrisc.AST.ASTUtil
Collect state related to handling of abstract syntax trees.
Constructor Summary | |
ASTUtil()
|
Method Summary | |
static boolean |
getPrintCVCL()
show whether CVCL syntax is used |
static boolean |
getPrintOldCVCL()
show whether old CVCL syntax is used |
static boolean |
getPrintParens()
show whether every (sub)expression is to be printed with enclosing parentheses |
static boolean |
getPrintUnique()
show whether every identifier is printed with its unique name |
static boolean |
getPrintVarNumber()
show whether every local variable is printed with its variable number |
static java.lang.String |
getUniqueName(java.lang.String name)
create unique identifier name from given name |
static void |
setPrintCVCL(boolean flag)
signal whether CVCL syntax is used |
static void |
setPrintOldCVCL(boolean flag)
signal whether old CVCL syntax is used |
static void |
setPrintParens(boolean flag)
signal whether every (sub)expression is to be printed with enclosing parentheses |
static void |
setPrintUnique(boolean flag)
signal whether every identifier is printed with its unique name |
static void |
setPrintVarNumber(boolean flag)
signal whether every identifier is printed with its variable number |
static Declaration[] |
toDeclarationArray(java.util.Vector v)
converts vector v of Declaration objects to Declaration array |
static Expression[] |
toExpressionArray(java.util.Vector v)
converts vector v of Expression objects to Expression array |
static Selector[] |
toSelectorArray(java.util.Vector v)
converts vector v of Selector objects to Selector array |
static Type[] |
toTypeArray(java.util.Vector v)
converts vector v of Type objects to Type array |
static TypedIdentifier[] |
toTypedIdentifierArray(java.util.Vector v)
converts vector v of TypedIdentifer objects to TypedIdentifier array |
static ValueDeclaration[] |
toValueDeclarationArray(java.util.Vector v)
converts vector v of ValueDeclaration objects to Declaration array |
static ValuedIdentifier[] |
toValuedIdentifierArray(java.util.Vector v)
converts vector v of ValuedIdentifer objects to ValuedIdentifier array |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ASTUtil()
Method Detail |
public static void setPrintParens(boolean flag)
flag
- true iff enclosing parenthesis are to be printedpublic static boolean getPrintParens()
public static void setPrintUnique(boolean flag)
flag
- true iff unique name is to be printedpublic static boolean getPrintUnique()
public static void setPrintVarNumber(boolean flag)
flag
- true iff variable number is to be printedpublic static boolean getPrintVarNumber()
public static void setPrintCVCL(boolean flag)
flag
- true iff CVCL syntax is usedpublic static boolean getPrintCVCL()
public static void setPrintOldCVCL(boolean flag)
flag
- true iff old syntax is usedpublic static boolean getPrintOldCVCL()
public static Declaration[] toDeclarationArray(java.util.Vector v)
v
- a vector holding Declaration objects
public static ValueDeclaration[] toValueDeclarationArray(java.util.Vector v)
v
- a vector holding Declaration objects
public static Type[] toTypeArray(java.util.Vector v)
v
- a vector holding AST objects
public static Expression[] toExpressionArray(java.util.Vector v)
v
- a vector holding Expression objects
public static Selector[] toSelectorArray(java.util.Vector v)
v
- a vector holding Selector objects
public static TypedIdentifier[] toTypedIdentifierArray(java.util.Vector v)
v
- a vector holding TypedIdentifier objects
public static ValuedIdentifier[] toValuedIdentifierArray(java.util.Vector v)
v
- a vector holding ValuedIdentifier objects
public static java.lang.String getUniqueName(java.lang.String name)
name
- of an identifier
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |