|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ujf.verimag.bip.codegen.C2BIPUtil
public abstract class C2BIPUtil
Helper class for translating C to BIP.
Field Summary | |
---|---|
protected static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
C2BIPUtil()
|
Method Summary | |
---|---|
static Module |
c2bipAsModel(java.lang.String c_filename,
boolean use_cpp,
java.lang.String context,
InteractionPoint[] interaction_points,
Module bipModule,
C2BIPVisitor v)
Translates a C file into an abstract model using the BIP metamodel. |
static java.lang.String |
c2bipAsString(java.lang.String c_filename,
boolean use_cpp,
java.lang.String context,
InteractionPoint[] interaction_points,
C2BIPVisitor v)
Translates a C file into BIP (as a String). |
static java.lang.String |
c2bipAsString(java.lang.String c_filename,
boolean use_cpp,
java.lang.String context,
InteractionPoint[] interaction_points,
Module bipModule,
C2BIPVisitor v)
Translates a C file into BIP (as a String). |
static StatementBlock |
getStatementForCFile(java.lang.String c_filename,
boolean use_cpp,
java.lang.String context)
Returns the codegen AST corresponding to a given C source file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.logging.Logger logger
Constructor Detail |
---|
public C2BIPUtil()
Method Detail |
---|
public static StatementBlock getStatementForCFile(java.lang.String c_filename, boolean use_cpp, java.lang.String context) throws java.lang.Exception
c_filename
- the C source filenameuse_cpp
- if true, the cpp is usedcontext
- a C code used as a context
java.lang.Exception
- in case an error happens (mainly file io related)public static Module c2bipAsModel(java.lang.String c_filename, boolean use_cpp, java.lang.String context, InteractionPoint[] interaction_points, Module bipModule, C2BIPVisitor v) throws java.lang.Exception
c_filename
- path to the C source fileuse_cpp
- if true, the cpp is used before parsingcontext
- contains extra C statement if needed, such as cpp macro. Can be null.interaction_points
- an array for functions considered as interaction points
java.lang.Exception
public static java.lang.String c2bipAsString(java.lang.String c_filename, boolean use_cpp, java.lang.String context, InteractionPoint[] interaction_points, C2BIPVisitor v) throws java.lang.Exception
c_filename
- path to the C source fileuse_cpp
- if true, the cpp is used before parsingcontext
- contains extra C statement if needed, such as cpp macro. Can be null.interaction_points
- an array for functions considered as interaction points
java.lang.Exception
public static java.lang.String c2bipAsString(java.lang.String c_filename, boolean use_cpp, java.lang.String context, InteractionPoint[] interaction_points, Module bipModule, C2BIPVisitor v) throws java.lang.Exception
c_filename
- path to the C source fileuse_cpp
- if true, the cpp is used before parsingcontext
- contains extra C statement if needed, such as cpp macro. Can be null.interaction_points
- an array for functions considered as interaction points
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |