Package org.aspectj.weaver.bcel
Class BcelWeaver
- java.lang.Object
-
- org.aspectj.weaver.bcel.BcelWeaver
-
public class BcelWeaver extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLOSURE_CLASS_PREFIXstatic StringSYNTHETIC_CLASS_POSTFIX
-
Constructor Summary
Constructors Constructor Description BcelWeaver(BcelWorld world)
-
Method Summary
-
-
-
Field Detail
-
CLOSURE_CLASS_PREFIX
public static final String CLOSURE_CLASS_PREFIX
- See Also:
- Constant Field Values
-
SYNTHETIC_CLASS_POSTFIX
public static final String SYNTHETIC_CLASS_POSTFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BcelWeaver
public BcelWeaver(BcelWorld world)
-
-
Method Detail
-
addLibraryAspect
public ResolvedType addLibraryAspect(String aspectName)
-
addLibraryJarFile
public void addLibraryJarFile(File inFile) throws IOException
- Throws:
IOException
-
addDirectoryContents
public List<UnwovenClassFile> addDirectoryContents(File inFile, File outDir) throws IOException
- Throws:
IOException
-
addJarFile
public List<UnwovenClassFile> addJarFile(File inFile, File outDir, boolean canBeDirectory)
-
needToReweaveWorld
public boolean needToReweaveWorld()
-
addClassFile
public ReferenceType addClassFile(UnwovenClassFile classFile, boolean fromInpath)
-
addClassFile
public UnwovenClassFile addClassFile(File classFile, File inPathDir, File outDir) throws IOException
- Throws:
IOException
-
deleteClassFile
public void deleteClassFile(String typename)
-
setIsBatchWeave
public void setIsBatchWeave(boolean b)
-
prepareForWeave
public void prepareForWeave()
-
setCustomMungerFactory
public void setCustomMungerFactory(CustomMungerFactory factory)
-
addManifest
public void addManifest(Manifest newManifest)
-
getManifest
public Manifest getManifest(boolean shouldCreate)
-
weave
public Collection<String> weave(File file) throws IOException
- Throws:
IOException
-
weave
public Collection<String> weave(IClassFileProvider input) throws IOException
- Throws:
IOException
-
allWeavingComplete
public void allWeavingComplete()
-
prepareToProcessReweavableState
public void prepareToProcessReweavableState()
-
processReweavableStateIfPresent
public void processReweavableStateIfPresent(String className, BcelObjectType classType)
-
getClassType
public BcelObjectType getClassType(String forClass)
-
addParentTypeMungers
public void addParentTypeMungers(String typeName)
-
addNormalTypeMungers
public void addNormalTypeMungers(String typeName)
-
getClassFilesFor
public UnwovenClassFile[] getClassFilesFor(LazyClassGen clazz)
-
weaveParentTypeMungers
public void weaveParentTypeMungers(ResolvedType onType)
-
weaveNormalTypeMungers
public void weaveNormalTypeMungers(ResolvedType onType)
-
weaveWithoutDump
public LazyClassGen weaveWithoutDump(UnwovenClassFile classFile, BcelObjectType classType) throws IOException
- Throws:
IOException
-
setReweavableMode
public void setReweavableMode(boolean xNotReweavable)
-
isReweavable
public boolean isReweavable()
-
getWorld
public World getWorld()
-
tidyUp
public void tidyUp()
-
write
public void write(CompressingDataOutputStream dos) throws IOException
- Throws:
IOException
-
setShadowMungers
public void setShadowMungers(List<ShadowMunger> shadowMungers)
-
-