Package eu.bandm.sig.adlib2.compile
Class LLJavaCompilationContext
java.lang.Object
eu.bandm.tools.lljava.live.impl.BaseCompilationContextImpl<CompilationContext>
eu.bandm.sig.adlib2.compile.LLJavaCompilationContext
- All Implemented Interfaces:
CompilationContext,eu.bandm.tools.lljava.live.BlockContext<CompilationContext>,eu.bandm.tools.lljava.live.CompilationContext<CompilationContext>,eu.bandm.tools.lljava.live.EnvironmentContext<CompilationContext>,eu.bandm.tools.lljava.live.InstructionsContext<CompilationContext>,eu.bandm.tools.lljava.live.InvocationContext<CompilationContext>,eu.bandm.tools.lljava.live.LabelContext,eu.bandm.tools.lljava.live.StateContext<CompilationContext>,eu.bandm.tools.lljava.live.SubMethodsContext<CompilationContext>,eu.bandm.tools.lljava.live.TracingContext,eu.bandm.tools.lljava.live.VariableContext
public class LLJavaCompilationContext
extends BaseCompilationContextImpl<CompilationContext>
implements CompilationContext
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.lljava.live.impl.BaseCompilationContextImpl
BaseCompilationContextImpl.Cache<A,B>, BaseCompilationContextImpl.EnvFieldInfo<T>, BaseCompilationContextImpl.FieldInfo, BaseCompilationContextImpl.LabelInfo, BaseCompilationContextImpl.StateFieldInfo, BaseCompilationContextImpl.VariableInfo Nested classes/interfaces inherited from interface eu.bandm.tools.lljava.live.EnvironmentContext
eu.bandm.tools.lljava.live.EnvironmentContext.EnvFieldInfo<T>Nested classes/interfaces inherited from interface eu.bandm.tools.lljava.live.LabelContext
eu.bandm.tools.lljava.live.LabelContext.LabelNested classes/interfaces inherited from interface eu.bandm.tools.lljava.live.VariableContext
eu.bandm.tools.lljava.live.VariableContext.Variable -
Field Summary
Fields inherited from class eu.bandm.tools.lljava.live.impl.BaseCompilationContextImpl
component, componentClassName, constructor, environmentInitializer, interfaces, labels, stateInitializer, superClass, variables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterfaceMethod(Class<?> interfaceType, Method interfaceMethod, Consumer<? super CompilationContext> generator) voidaddMainProcess(Process main) <C extends CompilableDataFlow>
voidaddMainSignalSource(Class<C> signalType, Class<?> valueType, String getterName, C source) voidaddNonLocalizedState(Class<?> type, Object owner, String name) voideu.bandm.tools.lljava.live.VariableContext.VariablefindLocalizableState(Class<?> type, Object owner, String name) final LLJavaCompilationContextself()Must be defined for this class to be instantiable = non-abstract by the bootphase proxy lljava.live.BaseCompilationContext.Methods inherited from class eu.bandm.tools.lljava.live.impl.BaseCompilationContextImpl
add, addInterface, addStatement, and, box, branch, branchIfEq, branchIfGEq, branchIfGT, branchIfLEq, branchIfLT, branchIfNegative, branchIfNEq, branchIfNonNegative, branchIfNonNull, branchIfNonPositive, branchIfNonZero, branchIfNull, branchIfPositive, branchIfZero, cmp, cmpGT, cmpLT, compile, compileClass, compileClass, convertTo, createFactory, createLabel, createLazyFactory, createLazyFactory, createLocalVariable, createVirtualVariable, createVirtualVariable, div, dup, endBlock, endBlock, endInitializer, endMethod, findEnv, findEnvUnstored, findState, findState, get, getBlock, getComponentClassName, getEnvFields, getEnvValues, getInputs, getOutputs, getParameter, hasInputs, hasOutputs, initially, initially, insert, instanceOf, instantiate, instantiateUpTo, invokeDynamic, invokeInterface, invokeSpecial, invokeStatic, invokeSubMethod, invokeSubMethod, invokeVirtual, invokeVirtualSelf, isTracing, length, load, load, load, load, load, load, load, loadArray, loadEnvVariable, loadNull, loadThis, method, mul, neg, newArray, newInstance, newInstance, newInstance, nop, or, pop, popFrame, postprocess, pushFrame, pushFrame, put, ref, ref, rem, return_, setTracing, shl, shr, startBlock, startBlock, startBlock, startInitializer, startMethod, startMethodInternal, store, store, storeArray, sub, subtypeOracle, switchUnique, switchUnique, throw_, toString, unbox, ushr, variable, variable, xorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.bandm.tools.lljava.live.BlockContext
block, block, endBlock, expr, expr, exprInputs, exprInputs, getInput, getInputs, getOutput, getOutput, getOutputs, hasInputs, hasOutputs, loadInput, loadOutput, startBlock, storeOutput, storeOutput, storeOutput, storeOutputMethods inherited from interface eu.bandm.tools.lljava.live.CompilationContext
addInterface, compileClass, eval, eval, eval, eval, getComponentClassName, getType, list, list, list, loadVarargs, loadVarargs, subtypeOracle, switchUnique, whileNonZeroMethods inherited from interface eu.bandm.tools.lljava.live.EnvironmentContext
createFactory, createFactory, findEnv, findEnvField, findEnvUnstored, getEnvFields, instantiate, instantiate, instantiateUpTo, instantiateUpTo, loadEnv, loadEnv, loadEnvField, loadEnvVariableMethods inherited from interface eu.bandm.tools.lljava.live.InstructionsContext
add, add, and, binary, binary, branch, branchIfEq, branchIfGEq, branchIfGT, branchIfLEq, branchIfLT, branchIfNegative, branchIfNEq, branchIfNonNegative, branchIfNonNull, branchIfNonPositive, branchIfNonZero, branchIfNull, branchIfPositive, branchIfZero, cmp, cmpGT, cmpLT, constant, constant, constant, constant, constant, constantNull, convertTo, div, div, dup, get, ifElse, ifElse, ifEq, ifEq, ifEq, ifGEq, ifGEq, ifGEq, ifGT, ifGT, ifGT, ifLEq, ifLEq, ifLEq, ifLT, ifLT, ifLT, ifNegative, ifNegative, ifNEq, ifNEq, ifNEq, ifNonNegative, ifNonNegative, ifNonNull, ifNonNull, ifNonPositive, ifNonPositive, ifNonZero, ifNonZero, ifNonZero, ifNull, ifNull, ifPositive, ifPositive, ifZero, ifZero, ifZero, instanceOf, invoke, isEq, isGEq, isGT, isLEq, isLT, isNegative, isNEq, isNonNegative, isNonNull, isNonPositive, isNonZero, isNull, isPositive, isZero, lazyAnd, lazyOr, length, load, load, load, load, load, load, load, loadArray, loadNull, loadPrimitive, loadThis, move, move, move, move, move, move, move, moveNull, mul, mul, neg, newArray, newInstance, nop, not, or, pop, put, query, rem, rem, return_, serve, serving, shl, shr, store, store, storeArray, sub, sub, switchUnique, throw_, ushr, xorMethods inherited from interface eu.bandm.tools.lljava.live.InvocationContext
invoke, invoke, invokeDynamic, invokeInterface, invokeSpecial, invokeStatic, invokeVirtual, newInstance, newInstanceMethods inherited from interface eu.bandm.tools.lljava.live.LabelContext
createLabel, insertMethods inherited from interface eu.bandm.tools.lljava.live.StateContext
findState, initializeState, initializeState, initializeState, initially, initially, loadState, storeState, storeStateMethods inherited from interface eu.bandm.tools.lljava.live.SubMethodsContext
endMethod, invokeSubMethod, invokeSubMethod, startMethodMethods inherited from interface eu.bandm.tools.lljava.live.TracingContext
isTracing, setTracingMethods inherited from interface eu.bandm.tools.lljava.live.VariableContext
createLocalVariable, createVirtualVariable, getParameter
-
Constructor Details
-
LLJavaCompilationContext
-
-
Method Details
-
self
Description copied from class:eu.bandm.tools.lljava.live.impl.BaseCompilationContextImplMust be defined for this class to be instantiable = non-abstract by the bootphase proxy lljava.live.BaseCompilationContext.- Specified by:
selfin interfaceeu.bandm.tools.lljava.live.BlockContext<CompilationContext>- Specified by:
selfin interfaceeu.bandm.tools.lljava.live.InstructionsContext<CompilationContext>- Overrides:
selfin classBaseCompilationContextImpl<CompilationContext>
-
addInterfaceMethod
public void addInterfaceMethod(Class<?> interfaceType, Method interfaceMethod, Consumer<? super CompilationContext> generator) - Specified by:
addInterfaceMethodin interfaceCompilationContext
-
addMainSignalSource
public <C extends CompilableDataFlow> void addMainSignalSource(Class<C> signalType, Class<?> valueType, String getterName, C source) - Specified by:
addMainSignalSourcein interfaceCompilationContext
-
addMainProcess
- Specified by:
addMainProcessin interfaceCompilationContext
-
enableLocalizedState
public void enableLocalizedState()- Specified by:
enableLocalizedStatein interfaceCompilationContext
-
addNonLocalizedState
- Specified by:
addNonLocalizedStatein interfaceCompilationContext
-
findLocalizableState
public eu.bandm.tools.lljava.live.VariableContext.Variable findLocalizableState(Class<?> type, Object owner, String name) - Specified by:
findLocalizableStatein interfaceCompilationContext
-