| EDU.purdue.cs.bloat.inline.InlineContext
All known Subclasses: EDU.purdue.cs.bloat.context.BloatContext,
InlineContext | public interface InlineContext extends EditorContext(Code) | | An InlineContext gives access to the CallGraph for the
program whose classes are being operated on by BLOAT.
|
addIgnoreClass | public void addIgnoreClass(Type type)(Code) | | Notes that a class should be ignored by inlining. That is, none of its
methods will be inlined and it won't be involved in specialization.
|
addIgnoreField | public void addIgnoreField(MemberRef field)(Code) | | Notes that a field should be ignored by inlining.
|
addIgnoreMethod | public void addIgnoreMethod(MemberRef method)(Code) | | Notes that a method should be ignored by inlining. That is, it will not
be inlined.
|
addIgnorePackage | public void addIgnorePackage(String name)(Code) | | Notes that all classes, methods, and fields in a package should be
"ignored" by inlining. That is, methods won't be inlined, classes won't
be involved in specialization, etc. Note that it is exceptable to just
add a prefix of a package name. For instance, adding "java" will ignore
java.lang.Object, java.io.File, etc.
|
getCallGraph | public CallGraph getCallGraph()(Code) | | Returns the call graph for the program.
|
getInlineStats | public InlineStats getInlineStats()(Code) | | Returns an InlineStats object for getting statistics about
inlining.
|
ignoreClass | public boolean ignoreClass(Type type)(Code) | | Returns true if a class should be ignored by inlining.
|
ignoreField | public boolean ignoreField(MemberRef field)(Code) | | Returns true if a field should be ignored by inlining.
|
ignoreMethod | public boolean ignoreMethod(MemberRef method)(Code) | | Returns true if a method should be ignored by inlining.
|
setIgnoreSystem | public void setIgnoreSystem(boolean ignoreSystem)(Code) | | Sets whether or not we ignore all system classes.
|
setRootMethods | public void setRootMethods(Set roots)(Code) | | Sets the root methods for this InlineContext.
Parameters: roots - The root methods (MemberRefs) of the program throws: IllegalStateException - Call graph has already been created with different roots. |
|
|