|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mtu.eggplant.dbc.CodeGenerator
Method Summary | |
static String |
generateAssertClassForInterface(AssertClass assertInterface)
Assertions on interfaces are checked by using a delegate class. |
static String |
generateAssertion(AssertToken tok)
This should be inserted right after the close of the javadoc comment. |
static String |
generateConstructorAssertions(AssertMethod assertMethod)
Generate the calls to pre, post and invariant conditions for a constructor. |
static String |
generateInvariantCall(AssertClass aClass)
This should be added at the start and end of all instance methods, except for private ones and should be at the end of constructors that aren't private. |
static String |
generateInvariantMethod(AssertClass assertClass)
This should be inserted right at the end of a class, just before the closing curly. |
static String |
generatePostConditionCall(AssertMethod assertMethod)
|
static String |
generatePostConditionMethod(AssertMethod assertMethod)
|
static String |
generatePreConditionCall(AssertMethod assertMethod)
This code should be inserted right at the start of the method |
static String |
generatePreConditionMethod(AssertMethod assertMethod)
|
static String |
getClassObjectForClass(String cl)
Convert a class name to a class object call. |
static String |
getObjectForParam(String paramType,
String paramName)
Take paramName and turn it into an object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String generateAssertion(AssertToken tok)
tok
- the token that represents the assertion
public static String generateInvariantCall(AssertClass aClass)
public static String generateInvariantMethod(AssertClass assertClass)
assertClass
- the class to generate the invariant check for
public static String generatePreConditionCall(AssertMethod assertMethod)
assertMethod
- the method to generate the precondition call for
public static String generateConstructorAssertions(AssertMethod assertMethod)
public static String generatePostConditionCall(AssertMethod assertMethod)
assertMethod
- the method to generate the post condition check call for
public static String generatePreConditionMethod(AssertMethod assertMethod)
public static String generatePostConditionMethod(AssertMethod assertMethod)
public static String generateAssertClassForInterface(AssertClass assertInterface)
public static String getClassObjectForClass(String cl)
public static String getObjectForParam(String paramType, String paramName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |