Package org.aspectj.weaver.bcel
Class UnwovenClassFile
java.lang.Object
org.aspectj.weaver.bcel.UnwovenClassFile
- All Implemented Interfaces:
IUnwovenClassFile
- Direct Known Subclasses:
UnwovenClassFileWithThirdPartyManagedBytecode
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected char[]protected Stringprotected Stringprotected booleanprotected List<UnwovenClassFile.ChildClass> -
Constructor Summary
ConstructorsConstructorDescriptionUnwovenClassFile(String filename, byte[] bytes) UnwovenClassFile(String filename, String classname, byte[] bytes) Use if the classname is known, saves a bytecode parse -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddeleteChildClassFile(String innerName) byte[]getBytes()char[]makeInnerFileName(String innerName) voidsetClassNameAsChars(char[] classNameAsChars) booleantoString()voidvoidwriteWovenBytes(byte[] bytes, List<UnwovenClassFile.ChildClass> childClasses)
-
Field Details
-
filename
-
charfilename
protected char[] charfilename -
bytes
protected byte[] bytes -
writtenChildClasses
-
className
-
isModule
protected boolean isModule
-
-
Constructor Details
-
UnwovenClassFile
-
UnwovenClassFile
Use if the classname is known, saves a bytecode parse
-
-
Method Details
-
shouldBeWoven
public boolean shouldBeWoven() -
getFilename
- Specified by:
getFilenamein interfaceIUnwovenClassFile
-
makeInnerFileName
-
getBytes
public byte[] getBytes()- Specified by:
getBytesin interfaceIUnwovenClassFile
-
getJavaClass
-
writeUnchangedBytes
- Throws:
IOException
-
writeWovenBytes
public void writeWovenBytes(byte[] bytes, List<UnwovenClassFile.ChildClass> childClasses) throws IOException - Throws:
IOException
-
deleteAllChildClasses
protected void deleteAllChildClasses() -
deleteChildClassFile
-
getClassNameAsChars
public char[] getClassNameAsChars()- Specified by:
getClassNameAsCharsin interfaceIUnwovenClassFile
-
getClassName
- Specified by:
getClassNamein interfaceIUnwovenClassFile
-
toString
-
setClassNameAsChars
public void setClassNameAsChars(char[] classNameAsChars)
-