Package org.aspectj.weaver.bcel
Class UnwovenClassFileWithThirdPartyManagedBytecode
java.lang.Object
org.aspectj.weaver.bcel.UnwovenClassFile
org.aspectj.weaver.bcel.UnwovenClassFileWithThirdPartyManagedBytecode
- All Implemented Interfaces:
IUnwovenClassFile
- Author:
- colyer This subclass of UnwovenClassFile allows a third-party to manage the actual bytes that comprise the class. This means the third party can return a reference to an existing array, or create the bytes on demand, or apply any other strategy that makes sense. By refering to bytes held elsewhere, the goal is to reduce the overall memory consumption by not holding a copy.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Nested classes/interfaces inherited from class org.aspectj.weaver.bcel.UnwovenClassFile
UnwovenClassFile.ChildClass
-
Field Summary
Fields inherited from class org.aspectj.weaver.bcel.UnwovenClassFile
bytes, charfilename, className, filename, isModule, writtenChildClasses
-
Constructor Summary
ConstructorDescriptionUnwovenClassFileWithThirdPartyManagedBytecode(String filename, String classname, UnwovenClassFileWithThirdPartyManagedBytecode.IByteCodeProvider provider)
-
Method Summary
Methods inherited from class org.aspectj.weaver.bcel.UnwovenClassFile
deleteAllChildClasses, deleteChildClassFile, getClassName, getClassNameAsChars, getFilename, getJavaClass, makeInnerFileName, setClassNameAsChars, shouldBeWoven, toString, writeUnchangedBytes, writeWovenBytes
-
Constructor Details
-
UnwovenClassFileWithThirdPartyManagedBytecode
public UnwovenClassFileWithThirdPartyManagedBytecode(String filename, String classname, UnwovenClassFileWithThirdPartyManagedBytecode.IByteCodeProvider provider)
-
-
Method Details
-
getBytes
public byte[] getBytes()- Specified by:
getBytes
in interfaceIUnwovenClassFile
- Overrides:
getBytes
in classUnwovenClassFile
-