|
||||||||||
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.TypeDeclarationTranslator
org.jmlspecs.jml4.rac.ClassDeclarationTranslator
public class ClassDeclarationTranslator
Translates JML assertions associated with classes to runtime assertion checking (RAC) code. This class is for translating various JML assertions associated with Java classes and their members to RAC code. The translated RAC code will be hosted in a new class declaration node, which is supposed to be pretty printed and parsed and merged to the AST of the source class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jmlspecs.jml4.rac.RacConstants |
---|
RacConstants.Behavior, RacConstants.Condition |
Field Summary |
---|
Constructor Summary | |
---|---|
ClassDeclarationTranslator(CompilationUnitDeclaration sourceUnit,
CompilationUnitDeclaration targetUnit)
Creates a new translator to translate the given source unit to the target unit. |
Method Summary | |
---|---|
TypeDeclaration |
translate(TypeDeclaration sourceType,
TypeDeclaration targetType)
Translates JML assertions of sourceType to RAC code
and store the RAC code to targetType . |
Methods inherited from class org.jmlspecs.jml4.rac.TypeDeclarationTranslator |
---|
needOwnRacRuntimeSupport |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassDeclarationTranslator(CompilationUnitDeclaration sourceUnit, CompilationUnitDeclaration targetUnit)
sourceUnit
- Compilation unit to be translatedtargetUnit
- Compilation unit to receive translated codeMethod Detail |
---|
public TypeDeclaration translate(TypeDeclaration sourceType, TypeDeclaration targetType)
sourceType
to RAC code
and store the RAC code to targetType
.
translate
in class TypeDeclarationTranslator
sourceType
- Class to be translated to RAC codetargetType
- Class to host translated RAC code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |