Class WrapParametersTableSwitchGenerator
- java.lang.Object
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.switches.DataClaySwitchByImplementationID
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.wrappers.WrapParametersAndReturnTableSwitchGenerator
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.wrappers.WrapParametersTableSwitchGenerator
-
public final class WrapParametersTableSwitchGenerator extends WrapParametersAndReturnTableSwitchGenerator
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 Constructor Description WrapParametersTableSwitchGenerator(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 Concrete Methods Modifier and Type Method Description protected boolean
checkIfNothingToSerialize(Operation operation)
Check if nothing to serializevoid
generateCallToParentCase()
Generate code for calling to parent for each case.protected void
getParameter(int idx)
Get parameterprotected Collection<Type>
getTypesToWrap(Operation operation)
Get types to wrap-
Methods inherited from class es.bsc.dataclay.logic.classmgr.bytecode.java.wrappers.WrapParametersAndReturnTableSwitchGenerator
generateCase
-
Methods inherited from class es.bsc.dataclay.logic.classmgr.bytecode.java.switches.DataClaySwitchByImplementationID
generateCode
-
-
-
-
Constructor Detail
-
WrapParametersTableSwitchGenerator
public WrapParametersTableSwitchGenerator(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 Collection<Type> getTypesToWrap(Operation operation)
Description copied from class:WrapParametersAndReturnTableSwitchGenerator
Get types to wrap- Specified by:
getTypesToWrap
in classWrapParametersAndReturnTableSwitchGenerator
- Parameters:
operation
- Operation- Returns:
- Types to wrap
-
generateCallToParentCase
public void generateCallToParentCase()
Description copied from class:DataClaySwitchByImplementationID
Generate code for calling to parent for each case.- Specified by:
generateCallToParentCase
in classDataClaySwitchByImplementationID
-
getParameter
protected void getParameter(int idx)
Description copied from class:WrapParametersAndReturnTableSwitchGenerator
Get parameter- Specified by:
getParameter
in classWrapParametersAndReturnTableSwitchGenerator
- Parameters:
idx
- Index of parameter
-
checkIfNothingToSerialize
protected boolean checkIfNothingToSerialize(Operation operation)
Description copied from class:WrapParametersAndReturnTableSwitchGenerator
Check if nothing to serialize- Specified by:
checkIfNothingToSerialize
in classWrapParametersAndReturnTableSwitchGenerator
- Parameters:
operation
- Op. to check.- Returns:
- TRUE if nothing to serialize
-
-