|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mtu.eggplant.dbc.AssertMethod
Object that contains the data needed to generate instrumented code for a method.
Constructor Summary | |
AssertMethod(AssertClass theClass,
String name,
List preConditions,
List postConditions,
List params,
String retType,
Set mods)
|
Method Summary | |
void |
addExit(CodePointPair points)
Add an exit to this method. |
String |
getAssertMethodVisibility()
Look at the mods list and determine what the visibility of the method that checks assertions should be. |
CodePoint |
getClose()
|
AssertClass |
getContainingClass()
|
CodePoint |
getEntrance()
|
Set |
getExits()
|
Set |
getMods()
|
String |
getName()
|
List |
getParams()
|
List |
getPostConditions()
|
List |
getPreConditions()
|
String |
getReturnType()
|
Set |
getThrownExceptions()
|
List |
getUniqueParams()
Get the unique parameters for this method. |
String |
getVisibility()
Look at the mods list and determine the visibility of this method. |
boolean |
isAbstract()
|
boolean |
isConstructor()
|
boolean |
isPrivate()
|
boolean |
isStatic()
|
boolean |
isVoid()
|
void |
setClose(CodePoint close)
Set the point at which should be added to be just outside the method, location of '}' + 1 |
void |
setMethodEntrance(CodePoint entrance)
Set the entrance to this method. |
void |
setThrownExceptions(Set thrownExceptions)
|
void |
setUniqueParams(List uniqueParams)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AssertMethod(AssertClass theClass, String name, List preConditions, List postConditions, List params, String retType, Set mods)
theClass
- the class that this method is contained inname
- the name of this method, will match the name of the class if
a constructorpreConditions
- the preconditions for this methodpostConditions
- the postconditions for this methodparams
- List of StringPairs
(class, parameter name)retType
- the return type of this method, null signals this method is a constructormods
- a Set of Strings that are the modifiers for this methodMethod Detail |
public String getName()
getName
in interface net.mtu.eggplant.util.Named
public final AssertClass getContainingClass()
public final List getPreConditions()
AssertTokens
public final List getPostConditions()
AssertTokens
public final void setMethodEntrance(CodePoint entrance)
public final CodePoint getEntrance()
public final void addExit(CodePointPair points)
points
- The first point is the start of the return token, the
second is the location of the semiColon at the end of the return. If the
method is void or a constructor, these two locations are equal because
the first one will be ignored on instrumentation.public final Set getExits()
CodePointPairs(start of return, semicolon)
public final List getParams()
StringPairs
(class, parameter name), don't modify this Listpublic List getUniqueParams()
public void setUniqueParams(List uniqueParams)
public final String getReturnType()
public final boolean isConstructor()
public final boolean isVoid()
public final CodePoint getClose()
public final void setClose(CodePoint close)
public String toString()
public final void setThrownExceptions(Set thrownExceptions)
public final Set getThrownExceptions()
public Set getMods()
public final boolean isStatic()
public final boolean isPrivate()
public final boolean isAbstract()
public final String getVisibility()
public final String getAssertMethodVisibility()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |