public class AsmManager extends java.lang.Object implements IStructureModel
Modifier and Type | Class and Description |
---|---|
static class |
AsmManager.ModelInfo
A ModelInfo object captures basic information about the structure model.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
attemptIncrementalModelRepairs |
static boolean |
dumpModelPostBuild |
static boolean |
forceSingletonBehaviour |
protected IHierarchy |
hierarchy |
protected java.util.Map<java.io.File,java.lang.String> |
inpathMap |
static AsmManager |
lastActiveStructureModel |
static boolean |
recordingLastActiveStructureModel |
Modifier and Type | Method and Description |
---|---|
void |
addAspectInEffectThisBuild(java.io.File f) |
void |
addListener(IHierarchyListener listener) |
static AsmManager |
createNewStructureModel(java.util.Map<java.io.File,java.lang.String> inpathMap) |
void |
dumprels(java.io.Writer w) |
static void |
dumptree(IProgramElement node,
int indent) |
static void |
dumptree(java.io.Writer w,
IProgramElement node,
int indent) |
void |
fireModelUpdated() |
java.util.Set<java.io.File> |
getAspectsWeavingFilesOnLastBuild() |
java.lang.String |
getCanonicalFilePath(java.io.File f) |
org.aspectj.asm.AsmManager.CanonicalFilePathMap |
getCanonicalFilePathMap() |
java.lang.String |
getHandleElementForInpath(java.lang.String binaryPath) |
IElementHandleProvider |
getHandleProvider() |
IHierarchy |
getHierarchy() |
java.util.HashMap<java.lang.Integer,java.util.List<IProgramElement>> |
getInlineAnnotations(java.lang.String sourceFile,
boolean showSubMember,
boolean showMemberAndType)
Constructs map each time it's called.
|
java.util.Set<java.io.File> |
getModelChangesOnLastBuild() |
IRelationshipMap |
getRelationshipMap() |
static boolean |
isCompletingTypeBindings() |
static boolean |
isReporting() |
void |
processDelta(java.util.Collection<java.io.File> files_tobecompiled,
java.util.Set<java.io.File> files_added,
java.util.Set<java.io.File> files_deleted) |
void |
readStructureModel(java.lang.String configFilePath) |
void |
removeAllListeners() |
void |
removeRelationshipsTargettingThisType(java.lang.String typename)
two kinds of relationships
A affects B B affectedBy A
Both of these relationships are added when 'B' is modified.
|
void |
removeStructureListener(IHierarchyListener listener) |
boolean |
removeStructureModelForFiles(java.io.Writer fw,
java.util.Collection<java.io.File> files)
Removes the hierarchy structure for the specified files from the structure model.
|
void |
reportModelInfo(java.lang.String reasonForReport) |
void |
resetDeltaProcessing() |
static void |
setCompletingTypeBindings(boolean b)
Set to indicate whether we are currently building a structure model, should be set up front.
|
static void |
setDontReport() |
void |
setHandleProvider(IElementHandleProvider handleProvider) |
static void |
setLastActiveStructureModel(AsmManager structureModel) |
static void |
setReporting(java.lang.String filename,
boolean dModel,
boolean dRels,
boolean dDeltaProcessing,
boolean deletefile) |
static void |
setReporting(java.lang.String filename,
boolean dModel,
boolean dRels,
boolean dDeltaProcessing,
boolean deletefile,
IModelFilter aFilter) |
AsmManager.ModelInfo |
summarizeModel() |
static void |
verifyAssumption(boolean b) |
static void |
verifyAssumption(boolean b,
java.lang.String info) |
void |
writeStructureModel(java.lang.String configFilePath) |
public static boolean recordingLastActiveStructureModel
public static AsmManager lastActiveStructureModel
public static boolean forceSingletonBehaviour
public static boolean attemptIncrementalModelRepairs
public static boolean dumpModelPostBuild
protected IHierarchy hierarchy
protected java.util.Map<java.io.File,java.lang.String> inpathMap
public static AsmManager createNewStructureModel(java.util.Map<java.io.File,java.lang.String> inpathMap)
public IHierarchy getHierarchy()
public IRelationshipMap getRelationshipMap()
public void fireModelUpdated()
public java.util.HashMap<java.lang.Integer,java.util.List<IProgramElement>> getInlineAnnotations(java.lang.String sourceFile, boolean showSubMember, boolean showMemberAndType)
public void addListener(IHierarchyListener listener)
public void removeStructureListener(IHierarchyListener listener)
public void removeAllListeners()
public IElementHandleProvider getHandleProvider()
public void setHandleProvider(IElementHandleProvider handleProvider)
public void writeStructureModel(java.lang.String configFilePath)
public void readStructureModel(java.lang.String configFilePath)
configFilePath
- path to an ".lst" filepublic java.lang.String getCanonicalFilePath(java.io.File f)
public org.aspectj.asm.AsmManager.CanonicalFilePathMap getCanonicalFilePathMap()
public static void setReporting(java.lang.String filename, boolean dModel, boolean dRels, boolean dDeltaProcessing, boolean deletefile)
public static void setReporting(java.lang.String filename, boolean dModel, boolean dRels, boolean dDeltaProcessing, boolean deletefile, IModelFilter aFilter)
public static boolean isReporting()
public static void setDontReport()
public void reportModelInfo(java.lang.String reasonForReport)
public static void dumptree(java.io.Writer w, IProgramElement node, int indent) throws java.io.IOException
java.io.IOException
public static void dumptree(IProgramElement node, int indent) throws java.io.IOException
java.io.IOException
public void dumprels(java.io.Writer w) throws java.io.IOException
java.io.IOException
public boolean removeStructureModelForFiles(java.io.Writer fw, java.util.Collection<java.io.File> files) throws java.io.IOException
java.io.IOException
public void processDelta(java.util.Collection<java.io.File> files_tobecompiled, java.util.Set<java.io.File> files_added, java.util.Set<java.io.File> files_deleted)
public void removeRelationshipsTargettingThisType(java.lang.String typename)
public static void verifyAssumption(boolean b, java.lang.String info)
public static void verifyAssumption(boolean b)
public AsmManager.ModelInfo summarizeModel()
public static void setCompletingTypeBindings(boolean b)
public static boolean isCompletingTypeBindings()
public void resetDeltaProcessing()
public java.util.Set<java.io.File> getModelChangesOnLastBuild()
public java.util.Set<java.io.File> getAspectsWeavingFilesOnLastBuild()
public void addAspectInEffectThisBuild(java.io.File f)
public static void setLastActiveStructureModel(AsmManager structureModel)
public java.lang.String getHandleElementForInpath(java.lang.String binaryPath)