|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.test.DebugStringer
Constructor Summary | |
DebugStringer(LinkedHashMap inputMap,
String var)
Constructor for DebugStringer |
Method Summary | |
String |
arrayAssignInLoop()
State that variable appears to be array filled in loop |
String |
assignBeforeUse()
State that variable is not assigned before use in a loop |
String |
assignedInFor(boolean is)
Show if variable assigned in for loop statement |
String |
bothSides(ArrayList onBothSides,
boolean is)
Show that variable appears on both side of assignment statement |
String |
conditionForAssignBranch()
State that variable is not assigned in branch, or condition for assignment branch |
String |
conditionForAssignBranch(HashMap conditionalAssignmentBranch)
Show that variable is condition for its assignment branch |
String |
directUse()
State that variable is used directly in program |
String |
incDec()
State that variable is not incremented or decremented within loop |
String |
incDec(ArrayList incDecStatements)
Show that variable is incremented/decremented in loop |
String |
isOrganizer(ArrayList organizerStatements)
Show that variable appears in organizer type statements |
String |
isTransformation(ArrayList transformations)
Show that variable is transformation |
String |
loopUseNoAssign()
State that variable is used for loop condition outside of loop in which it is assigned |
String |
methodAssigns(ArrayList methodAssigns)
Show that variable appears to be assigned with return from method call |
String |
nestedBooleanAssign()
State that variable does appear to be indirectly toggled within loop |
String |
nestedBooleanAssign(ArrayList nestedAssigns)
Show that variable appears to be indirectly toggled within loop |
String |
noDirectUse()
Show whether there is any direct use of the variable in teh program |
String |
notArray()
State that variable does not appear to be array |
String |
notAssignedInLoop()
State that variable is not assigned within a loop |
String |
notMethodAssign()
State that variable is only assigned directly with value of other variable |
String |
notOrganizer()
State that there appear to be no organizer statements for variable |
String |
notTransform()
State that variable does not appear to be transformation |
String |
notUsedForAssignLoopCondition()
State that variable is not used for condition of assignment loop |
String |
notUsedInAssign()
State that variable is not used in assignment loop |
String |
showFoundInAssignmentLoop(HashMap foundInLoop,
String what)
Show statements found in loop in which variable is assigned |
String |
showFoundInLoop(HashMap foundInLoop,
String what)
Show statement for variable found in loop |
String |
temporary(ArrayList assignBeforeUse)
Show that variable is assigned before use in loop |
String |
toggle()
Show that variable is not toggled within loop |
String |
toggle(ArrayList toggleStatements)
Show when toggle statement is found in loop |
String |
usedOutsideAssign()
State that variable is used outside of loop in which it is assigned |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DebugStringer(LinkedHashMap inputMap, String var)
inputMap
- LinkedHashMap containing analysed statementsvar
- String variable for which string to be generatedMethod Detail |
public String showFoundInLoop(HashMap foundInLoop, String what)
foundInLoop
- HashMap containing all statements for a given variable found
in a loopwhat
- String specifying what sort of statement to look for
public String showFoundInAssignmentLoop(HashMap foundInLoop, String what)
foundInLoop
- HashMap containing all statements found in assignment loopwhat
- String The sort of statemen to look for
public String assignedInFor(boolean is)
is
- boolean Whether statement is assigned in for loop statement
public String noDirectUse()
public String toggle(ArrayList toggleStatements)
toggleStatements
- ArrayList of toggleStatements for variable
public String toggle()
public String conditionForAssignBranch(HashMap conditionalAssignmentBranch)
conditionalAssignmentBranch
- HashMap containing assignmentBranch condition statements
public String conditionForAssignBranch()
public String bothSides(ArrayList onBothSides, boolean is)
onBothSides
- ArrayList containing statements in questionis
- whether variable does appear on both sides or not
public String incDec(ArrayList incDecStatements)
incDecStatements
- ArrayList of incDec statements
public String incDec()
public String notArray()
public String notAssignedInLoop()
public String notOrganizer()
public String isOrganizer(ArrayList organizerStatements)
organizerStatements
- ArrayList of organizer statements
public String notTransform()
public String isTransformation(ArrayList transformations)
transformations
- ArrayList containing transformation statements
public String nestedBooleanAssign()
public String nestedBooleanAssign(ArrayList nestedAssigns)
nestedAssigns
- ArrayList of nested boolean assignments
public String methodAssigns(ArrayList methodAssigns)
methodAssigns
- ArrayList of assignment statements within method calls on
right hand side
public String notUsedInAssign()
public String temporary(ArrayList assignBeforeUse)
assignBeforeUse
- ArrayList of statements
public String usedOutsideAssign()
public String assignBeforeUse()
public String notMethodAssign()
public String arrayAssignInLoop()
public String directUse()
public String notUsedForAssignLoopCondition()
public String loopUseNoAssign()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |