|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.lowering.LoweringConstants
public class LoweringConstants
Contains various constants for the lowering process.
Field Summary | |
---|---|
static String |
CHILD_NAME
The prefix of the name for the variable holding child substreams in structures. |
static String |
CONTEXT_TYPE_NAME
The name of the type serving as the stream context. |
static String |
CONTEXT_VAR_NAME
The name of the variable holding the stream context in structures. |
static String |
FILE_READER_WORK_NAME
The name of the method in the runtime system that runs a filereader. |
static String |
FILE_WRITER_WORK_NAME
The name of the method in the runtime system that runs a filewriter. |
static String |
IDENTITY_WORK_NAME
The name of the method in the runtime system that runs identity. |
static String |
INPUT_TAPE_NAME
The name of the parameter corresponding to the input tape. |
static String |
JOINER_WORK_NAME
The name of the method in the runtime system that runs a joiner. |
static String |
OUTPUT_TAPE_NAME
The name of the parameter corresponding to the output tape. |
static String |
SPLITTER_WORK_NAME
The name of the method in the runtime system that runs a splitter. |
static String |
STATE_PARAM_NAME
The name of the parameter that functions get to access their fields. |
static String |
TAPE_TYPE_NAME
The name of the type of the tape parameters to work functions. |
Constructor Summary | |
---|---|
LoweringConstants()
|
Method Summary | |
---|---|
static String |
getAnonWorkName()
Returns a new, unique name for a work function that might have no analogue in the stream structure (is "anonymous") |
static JFieldAccessExpression |
getChildStruct(SIROperator child)
Returns a field access to |
static JFieldDeclaration |
getContextField()
Returns the field declaration declaring a stream context. |
static JExpression |
getDataField()
Returns a field access to the current stream structure. |
static String |
getInitName(SIRStream str)
Returns the name of the flattened init function for |
static JFieldDeclaration |
getInTapeField()
Returns a field declaration for the input tape of structures. |
static JVariableDefinition |
getInterfaceTableVariable(JExpression initializer)
Given the |
static String |
getMethodName(String streamName,
String methodName)
Given that the name of a stream structure is |
static JFieldDeclaration |
getOutTapeField()
Returns a field declaration for the output tape of structures. |
static JExpression |
getParentStructureAccess(SIRIterator iter)
Creates a field access that gets to the structure of |
static JExpression |
getStreamContext()
Returns a reference to current stream context inside a work function. |
static JExpression |
getStreamContext(JExpression parentStructure)
Returns access to stream context given parent structure |
static String |
getUniqueVarName()
Returns a unique name for a variable to be added to a method of the program. |
static String |
getWorkName(SIRFilter str)
Returns the name of the flattened work function for |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FILE_READER_WORK_NAME
public static final String FILE_WRITER_WORK_NAME
public static final String IDENTITY_WORK_NAME
public static final String SPLITTER_WORK_NAME
public static final String JOINER_WORK_NAME
public static final String CONTEXT_TYPE_NAME
public static final String CONTEXT_VAR_NAME
public static final String CHILD_NAME
public static final String STATE_PARAM_NAME
public static final String TAPE_TYPE_NAME
public static final String INPUT_TAPE_NAME
public static final String OUTPUT_TAPE_NAME
Constructor Detail |
---|
public LoweringConstants()
Method Detail |
---|
public static String getUniqueVarName()
public static JVariableDefinition getInterfaceTableVariable(JExpression initializer)
public static JExpression getParentStructureAccess(SIRIterator iter)
public static JFieldAccessExpression getChildStruct(SIROperator child)
public static JExpression getDataField()
public static JFieldDeclaration getContextField()
public static JFieldDeclaration getInTapeField()
public static JFieldDeclaration getOutTapeField()
public static String getMethodName(String streamName, String methodName)
public static String getWorkName(SIRFilter str)
public static String getAnonWorkName()
public static String getInitName(SIRStream str)
public static JExpression getStreamContext()
public static JExpression getStreamContext(JExpression parentStructure)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |