|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjparse.VarList
A list of variables whose values are read by an expression or statement, whose values are written by an expression or statement, or which are declared by a statement
Field Summary | |
VarAST[] |
decl
The list of variables that are declared |
VarAST[] |
read
The list of variables whose values are read |
VarAST[] |
write
The list of variables whose values are written |
Constructor Summary | |
VarList()
Create an empty list of variables |
|
VarList(VarAST readVar)
Create a new list of variables from a single variable |
|
VarList(VarAST[] decls)
Create a new list of variables from an array of declarations |
|
VarList(VarList[] lists)
Create a new list of variables by merging an array of lists |
|
VarList(VarList list,
VarAST declaration)
Create a new list of variables by adding a declaration to an existing list |
|
VarList(VarList list1,
VarList list2)
Create a new list of variables by merging two other lists |
|
VarList(VarList list1,
VarList list2,
boolean assign)
Create a new list of variables by merging two other lists, and optionally changing reads to writes for the first list |
|
VarList(VarList list1,
VarList list2,
VarList list3)
Create a new list of variables by merging three other lists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final VarAST[] read
public final VarAST[] write
public final VarAST[] decl
Constructor Detail |
public VarList()
public VarList(VarAST readVar)
readVar
- a variable that is read by the expression or statementpublic VarList(VarAST[] decls)
decls
- the declarationspublic VarList(VarList list, VarAST declaration)
list
- the existing listdeclaration
- the declaration to addpublic VarList(VarList list1, VarList list2)
list1
- the first list to mergelist2
- the second list to mergepublic VarList(VarList list1, VarList list2, boolean assign)
list1
- the first list to mergelist2
- the second list to mergeassign
- true
if this is for an assignment
expression, so that reads should be changed to writes for
list1public VarList(VarList list1, VarList list2, VarList list3)
list1
- the first list to mergelist2
- the second list to mergelist3
- the third list to mergepublic VarList(VarList[] lists)
lists
- the array of lists to merge
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |