Class WrapParametersAndReturnTableSwitchGenerator
- java.lang.Object
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.switches.DataClaySwitchByImplementationID
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.wrappers.WrapParametersAndReturnTableSwitchGenerator
-
- Direct Known Subclasses:
WrapParametersTableSwitchGenerator
,WrapReturnTableSwitchGenerator
public abstract class WrapParametersAndReturnTableSwitchGenerator extends DataClaySwitchByImplementationID
Run table switch for wrapping parameters.
-
-
Field Summary
-
Fields inherited from class es.bsc.dataclay.logic.classmgr.bytecode.java.switches.DataClaySwitchByImplementationID
gn, ia, isExecClass, metaClass, stubInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WrapParametersAndReturnTableSwitchGenerator(MetaClass themetaClass, StubInfo thestubInfo, boolean theisExecClass, org.objectweb.asm.commons.GeneratorAdapter thegn, org.objectweb.asm.commons.InstructionAdapter theia)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
checkIfNothingToSerialize(Operation operation)
Check if nothing to serializevoid
generateCase(Implementation impl)
Generate code for each case.protected abstract void
getParameter(int idx)
Get parameterprotected abstract Collection<Type>
getTypesToWrap(Operation operation)
Get types to wrap-
Methods inherited from class es.bsc.dataclay.logic.classmgr.bytecode.java.switches.DataClaySwitchByImplementationID
generateCallToParentCase, generateCode
-
-
-
-
Constructor Detail
-
WrapParametersAndReturnTableSwitchGenerator
protected WrapParametersAndReturnTableSwitchGenerator(MetaClass themetaClass, StubInfo thestubInfo, boolean theisExecClass, org.objectweb.asm.commons.GeneratorAdapter thegn, org.objectweb.asm.commons.InstructionAdapter theia)
Constructor- Parameters:
themetaClass
- Information of class.thestubInfo
- Stub infotheisExecClass
- isExec classthegn
- Method generator.theia
- Instruction adapter
-
-
Method Detail
-
getTypesToWrap
protected abstract Collection<Type> getTypesToWrap(Operation operation)
Get types to wrap- Parameters:
operation
- Operation- Returns:
- Types to wrap
-
getParameter
protected abstract void getParameter(int idx)
Get parameter- Parameters:
idx
- Index of parameter
-
checkIfNothingToSerialize
protected abstract boolean checkIfNothingToSerialize(Operation operation)
Check if nothing to serialize- Parameters:
operation
- Op. to check.- Returns:
- TRUE if nothing to serialize
-
generateCase
public final void generateCase(Implementation impl)
Description copied from class:DataClaySwitchByImplementationID
Generate code for each case.- Specified by:
generateCase
in classDataClaySwitchByImplementationID
- Parameters:
impl
- Implementation of case
-
-