public class FabricToFabilRewriter
extends JifToJavaRewriter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LABEL_INITIALIZER_METHOD_NAME |
protected java.util.List<java.lang.String> |
objectFragments
A list of field names corresponding to object fragments that need to be
initialized by the Jif initializer before initializing other fields.
|
static java.lang.String |
PARTITION_INITIALIZER_METHOD_NAME |
protected Expr |
staticThisExpr
An expression used to instantiate the 'this' principal in static contexts
|
Constructor and Description |
---|
FabricToFabilRewriter(Job job,
FabricTypeSystem fab_ts,
FabricNodeFactory fab_nf,
ExtensionInfo fabil_ext) |
Modifier and Type | Method and Description |
---|---|
void |
addInitializer(FieldInstance fi,
Expr init) |
void |
addObjectFragment(java.lang.String fragmentName) |
void |
clearStaticThisExpr()
Clear "this" principal expression.
|
Source |
createDerivedSource(CodebaseSource src,
java.lang.String newName) |
Expr |
currentLocation() |
boolean |
fabIsPublished() |
java.util.List<java.lang.String> |
getObjectFragments() |
boolean |
inSignatureMode() |
void |
leavingClass() |
Node |
leavingSourceFile(SourceFile n) |
FabricToFabilRewriter |
pushLocation(Expr location) |
java.lang.String |
runtimeLabelUtil() |
java.lang.String |
runtimePrincipalUtil()
The full class path of the runtime principal utility.
|
void |
setStaticThisExpr(Expr e)
Provide an expression to instantiate "this" principals with in static contexts.
|
Expr |
staticThisExpr() |
TypeNode |
typeToJava(Type t,
Position pos) |
public static final java.lang.String LABEL_INITIALIZER_METHOD_NAME
public static final java.lang.String PARTITION_INITIALIZER_METHOD_NAME
protected java.util.List<java.lang.String> objectFragments
protected Expr staticThisExpr
public FabricToFabilRewriter(Job job, FabricTypeSystem fab_ts, FabricNodeFactory fab_nf, ExtensionInfo fabil_ext)
public Source createDerivedSource(CodebaseSource src, java.lang.String newName)
public boolean fabIsPublished()
public FabricToFabilRewriter pushLocation(Expr location)
public Expr currentLocation()
public java.lang.String runtimePrincipalUtil()
public java.lang.String runtimeLabelUtil()
public TypeNode typeToJava(Type t, Position pos) throws SemanticException
SemanticException
public boolean inSignatureMode()
public Node leavingSourceFile(SourceFile n)
public void leavingClass()
public void addInitializer(FieldInstance fi, Expr init) throws SemanticException
SemanticException
public void setStaticThisExpr(Expr e)
public void clearStaticThisExpr()
public Expr staticThisExpr()
public void addObjectFragment(java.lang.String fragmentName)
public java.util.List<java.lang.String> getObjectFragments()