|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.string.external.MethodResolution
public class MethodResolution
A description of a non-application method. Describes which strings may be returned, and which arguments might be modified.
Constructor Summary | |
---|---|
MethodResolution(int numArguments)
Creates a method resolution for a completely corrupting method call with the specified number of arguments. |
|
MethodResolution(int numArguments,
Automaton returnedAutomaton)
Creates a method resolution for a completely corrupting method call with the specified number of arguments. |
Method Summary | |
---|---|
List<Boolean> |
getCorruptedArguments()
Returns a list of booleans, where index i indicates whether argument i might be changed as a result of calling the method. |
int |
getReturnedArgument()
Returns the index of an argument being returned, or -1 if the method does not return one of its arguments. |
Automaton |
getReturnedAutomaton()
Returns the automaton accepting all possible return values of the method, or null if the method returns something corrupt. |
boolean |
isArgumentCorrupted(int i)
Returns whether argument i might be modified as a result of invoking the method. |
boolean |
isReturnCorrupt()
Returns whether the return value is considered corrupt. |
void |
setArgumentCorrupted(int i,
boolean b)
Sets whether argument i might be modified as a result of invoking the method. |
void |
setReturnCorrupt()
Sets the method to return something corrupt. |
void |
setReturnedArgument(int returnedArgument)
Sets the index of an argument being returned, or -1 if the method does not return one of its arguments. |
void |
setReturnedAutomaton(Automaton returnValue)
Sets the automaton accepting all possible return values of the method, or null if the method returns something corrupt. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodResolution(int numArguments)
setReturnedAutomaton(Automaton)
and
setArgumentCorrupted(int, boolean)
.
numArguments
- number of arguments to the methodpublic MethodResolution(int numArguments, Automaton returnedAutomaton)
setReturnedAutomaton(Automaton)
and
setArgumentCorrupted(int, boolean)
.
numArguments
- number of arguments to the methodreturnedAutomaton
- see setReturnedAutomaton(Automaton)
Method Detail |
---|
public List<Boolean> getCorruptedArguments()
public int getReturnedArgument()
public Automaton getReturnedAutomaton()
public boolean isArgumentCorrupted(int i)
getCorruptedArguments()
.
i
- the argument number
public boolean isReturnCorrupt()
public void setArgumentCorrupted(int i, boolean b)
getCorruptedArguments()
.
i
- the argument numberb
- true if the specified argument might be modifiedpublic void setReturnCorrupt()
public void setReturnedArgument(int returnedArgument)
returnedArgument
- an argument index, or -1.public void setReturnedAutomaton(Automaton returnValue)
returnValue
- an automaton denoting the possible return values, or null is something corrupt is returned or an argument is returned.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |