|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.jml4.rac.RacTranslator
org.jmlspecs.jml4.rac.MethodBodyTranslator
public class MethodBodyTranslator
Translates a method body of a class or interface to RAC code. For classes, this class translates JML in-line assertions and statements contained in a method body to RAC code. For interfaces, it generates bodies for the so-called delegation methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jmlspecs.jml4.rac.RacConstants |
---|
RacConstants.Behavior, RacConstants.Condition |
Field Summary |
---|
Constructor Summary | |
---|---|
MethodBodyTranslator(CompilationUnitDeclaration source,
VariableGenerator varGen)
Creates a new translator for the given compilation unit. |
Method Summary | |
---|---|
java.lang.StringBuffer |
translateInlineAssertions(AbstractMethodDeclaration sourceMethod,
RacResult result)
Translates all in-line assertions of sourceMethod
to RAC code and attach them to targetMethod . |
java.lang.StringBuffer |
translateInlineAssertions(Initializer initBlock,
RacResult result)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodBodyTranslator(CompilationUnitDeclaration source, VariableGenerator varGen)
Method Detail |
---|
public java.lang.StringBuffer translateInlineAssertions(AbstractMethodDeclaration sourceMethod, RacResult result)
sourceMethod
to RAC code and attach them to targetMethod
. The RAC
code is added to the racCode
field. Other translation
information is stored in racResult
.
public java.lang.StringBuffer translateInlineAssertions(Initializer initBlock, RacResult result)
transIn
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |