Class StubByteCodeManager
- java.lang.Object
-
- es.bsc.dataclay.logic.classmgr.bytecode.java.StubByteCodeManager
-
public final class StubByteCodeManager extends Object
This class is responsible to manage bytecode of stubs (create stubs).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
generateJavaStub(MetaClass metaclass, StubInfo mClassStubInfo, List<MetaClass> accessedClasses, ClassManager classMgrRef)
Generates a Java bytecode stub corresponding to the MetaClass provided using the Stub info specified.static byte[]
generateStubAspect(MetaClass metaclass, boolean forExec, ClassManager classMgrRef)
Generate stub aspect
-
-
-
Method Detail
-
generateJavaStub
public static byte[] generateJavaStub(MetaClass metaclass, StubInfo mClassStubInfo, List<MetaClass> accessedClasses, ClassManager classMgrRef)
Generates a Java bytecode stub corresponding to the MetaClass provided using the Stub info specified.- Parameters:
metaclass
- MetaClass from which to generate the stubmClassStubInfo
- Information the stub must haveclassMgrRef
- Reference to class manageraccessedClasses
- Accessed classes of the class- Returns:
- An array of bytes representing the stub of the MetaClass provided.
-
generateStubAspect
public static byte[] generateStubAspect(MetaClass metaclass, boolean forExec, ClassManager classMgrRef)
Generate stub aspect- Parameters:
metaclass
- Class of the stubforExec
- Indicates if aspects are for execution environmentclassMgrRef
- Reference to class Manager.- Returns:
- Serialized string representing the aspect
-
-