public class LLJavaCompilationContext extends Object implements CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
LLJavaCompilationContext.FloatSquare |
class |
LLJavaCompilationContext.Label |
class |
LLJavaCompilationContext.Variable |
CompilationContext.Type
Constructor and Description |
---|
LLJavaCompilationContext(String componentClassName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
block, compileDataFlow, compileDataFlow, load, loadInput, loadState, method, move, storeOutput, storeOutput, storeState, storeState, typeOf
public LLJavaCompilationContext(String componentClassName)
public Object instantiate()
public void addMainFloatSignalSource(FloatSignalSource source)
public void addMainRealtime(Realtime plan)
public List<LLJavaCompilationContext.Variable> getInputs()
getInputs
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public List<LLJavaCompilationContext.Variable> getOutputs()
getOutputs
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public LLJavaCompilationContext.Variable createLocalVariable(CompilationContext.Type type)
createLocalVariable
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void startBlock(List<LLJavaCompilationContext.Variable> inputs, List<LLJavaCompilationContext.Variable> outputs)
startBlock
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void endBlock()
endBlock
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void checkInputs(CompilationContext.Type... types)
checkInputs
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void checkOutputs(CompilationContext.Type... types)
checkOutputs
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public LLJavaCompilationContext.Label createLabel()
createLabel
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void neg()
neg
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void add()
add
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void sub()
sub
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void mul()
mul
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void div()
div
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void rem()
rem
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void convertTo(CompilationContext.Type type)
convertTo
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void load(int c)
load
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void load(float c)
load
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void load(long c)
load
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void load(double c)
load
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void load(LLJavaCompilationContext.Variable s)
load
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void loadArray()
loadArray
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void storeArray()
storeArray
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void dup()
dup
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void pop()
pop
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public <C> void loadEnv(Class<C> type, C value)
loadEnv
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public LLJavaCompilationContext.Variable findState(CompilationContext.Type type, Object owner, String name)
findState
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void store(LLJavaCompilationContext.Variable t)
store
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void store(LLJavaCompilationContext.Variable t, Runnable body)
store
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void insert(LLJavaCompilationContext.Label l)
insert
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void branch(LLJavaCompilationContext.Label l)
branch
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void branchIfEq(LLJavaCompilationContext.Label l)
branchIfEq
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void branchIfNEq(LLJavaCompilationContext.Label l)
branchIfNEq
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void invokeInterface(Method method)
invokeInterface
in interface CompilationContext<LLJavaCompilationContext.Variable,LLJavaCompilationContext.Label>
public void invokeStatic(Method method)
public void postprocess()
public static void main(String[] args)