Class SetWrapperParametersAndReturnSwitchGenerator
- java.lang.Object
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.switches.DataClaySwitchByImplementationID
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.wrappers.SetWrapperParametersAndReturnSwitchGenerator
-
- Direct Known Subclasses:
SetWrapperParametersTableSwitchGenerator
,SetWrapperReturnTableSwitchGenerator
public abstract class SetWrapperParametersAndReturnSwitchGenerator 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
SetWrapperParametersAndReturnSwitchGenerator(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 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
-
SetWrapperParametersAndReturnSwitchGenerator
protected SetWrapperParametersAndReturnSwitchGenerator(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
-
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
-
-