Class Context
java.lang.Object
liquidjava.processor.context.Context
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlias(AliasWrapper aw) voidvoidaddGhostClass(String klass) voidvoidaddGlobalVariableToContext(String simpleName, String location, spoon.reflect.reference.CtTypeReference<?> type, Predicate c) addInstanceToContext(String simpleName, spoon.reflect.reference.CtTypeReference<?> type, Predicate c, spoon.reflect.declaration.CtElement placementInCode) voidaddRefinementInstanceToVariable(String name, String instanceName) voidaddRefinementToVariableInContext(String name, spoon.reflect.reference.CtTypeReference<?> type, Predicate et, spoon.reflect.declaration.CtElement placementInCode) voidvoidaddToGhostClass(String klass, GhostState gs) addVarToContext(String simpleName, spoon.reflect.reference.CtTypeReference<?> type, Predicate c, spoon.reflect.declaration.CtElement placementInCode) voidvoidvoidgetAlias()getAllMethodsWithNameSize(String name, int size) Lists all variables inside the stackintgetFunction(String name, String target, int size) static ContextgetVariableByName(String name) getVariableRefinements(String varName) booleanhasVariable(String name) voidnewRefinementToVariableInContext(String variableName, Predicate expectedType) The variable with name variableName will have a new refinementvoidvoidtoString()voidvoidvoidvoidvoidvoid
-
Field Details
-
counter
public int counter
-
-
Method Details
-
getInstance
-
reinitializeContext
public void reinitializeContext() -
reinitializeAllContext
public void reinitializeAllContext() -
enterContext
public void enterContext() -
exitContext
public void exitContext() -
getCounter
public int getCounter() -
getContext
-
addGlobalVariableToContext
-
addVarToContext
-
addVarToContext
public RefinedVariable addVarToContext(String simpleName, spoon.reflect.reference.CtTypeReference<?> type, Predicate c, spoon.reflect.declaration.CtElement placementInCode) -
addInstanceToContext
public RefinedVariable addInstanceToContext(String simpleName, spoon.reflect.reference.CtTypeReference<?> type, Predicate c, spoon.reflect.declaration.CtElement placementInCode) -
addRefinementToVariableInContext
-
newRefinementToVariableInContext
-
getVariableRefinements
-
getVariableByName
-
hasVariable
-
getAllVariables
Lists all variables inside the stack- Returns:
- list of all variables
-
getAllVariablesWithSupertypes
-
addRefinementInstanceToVariable
-
getLastVariableInstance
-
addSpecificVariable
-
variablesSetBeforeIf
public void variablesSetBeforeIf() -
variablesSetThenIf
public void variablesSetThenIf() -
variablesSetElseIf
public void variablesSetElseIf() -
variablesNewIfCombination
public void variablesNewIfCombination() -
variablesFinishIfCombination
public void variablesFinishIfCombination() -
variablesCombineFromIf
-
addFunctionToContext
-
getFunction
-
getAllMethodsWithNameSize
-
addGhostFunction
-
getGhosts
-
addGhostClass
-
addToGhostClass
-
getGhostState
-
getGhostState
-
addAlias
-
getAlias
-
toString
-
getVariableFromInstance
-