|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.neu.ccs.demeterf.Control edu.neu.ccs.demeterf.control.MutableControl edu.neu.ccs.demeterf.control.EdgeBypass
public class EdgeBypass
Supports the ability to skip/bypass edges of a structure while Traversing. Essentially it is a boolean function object:
boolean skip(Class, String);that allows Per-Traversal control. See
Traversal
for how its used in construction, and Examples
for how traversal can be controled to affect computation.
Constructor Summary | |
---|---|
EdgeBypass()
Bypass all the edges given |
|
EdgeBypass(java.lang.Class<?>... cs)
Bypass all the edges of the given classes |
|
EdgeBypass(Edge... edges)
Bypass all the edges given |
|
EdgeBypass(java.lang.String... bypass)
Takes a String in the format of "Class.edge "+ (meaning more than one). |
|
EdgeBypass(java.lang.String bypass)
|
|
EdgeBypass(java.lang.String pkg,
java.lang.String bypass)
|
Method Summary | |
---|---|
EdgeBypass |
addBuiltIn(java.lang.Class<?> c)
Adds the given Class as a Builtin |
EdgeBypass |
addBuiltIns(java.lang.Class<?>... cs)
Add a Number of Classes to be considered Primitives |
MutableControl |
addBypassing(java.lang.Class<?> c)
Adds all immediate fields of the given Class to be Bypassed |
MutableControl |
addBypassing(java.lang.Class<?> c,
java.lang.String f)
Adds the given Class/Field to be Bypassed |
MutableControl |
addBypassing(Edge e)
Adds the given Edge to be Bypassed |
boolean |
ignore(java.lang.Class<?> c,
java.lang.String f)
Returns whether or not to bypass/skip the given Class/Field |
boolean |
ignore(Edge e)
Returns whether or not to bypass/skip the given Edge |
MutableControl |
removeBypassing(java.lang.Class<?> c,
java.lang.String f)
Removes the given Class/Field from the Bypassed list |
MutableControl |
removeBypassing(Edge e)
Removes the given Edge from the Bypassed list |
boolean |
skip(java.lang.Class<?> c,
java.lang.String f)
Returns whether or not to bypass/skip the given Class/Field |
boolean |
skip(Edge e)
Returns whether or not to bypass/skip the given Edge |
Methods inherited from class edu.neu.ccs.demeterf.Control |
---|
builtins, bypass, bypass, bypass, bypass, everywhere, isBuiltIn, isBuiltInOld, nowhere, only, only, only, only, remove, remove, remove, remove |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeBypass()
public EdgeBypass(Edge... edges)
public EdgeBypass(java.lang.Class<?>... cs)
public EdgeBypass(java.lang.String... bypass)
Type
can be used to extend the path that is
used to search for classes.
public EdgeBypass(java.lang.String bypass)
public EdgeBypass(java.lang.String pkg, java.lang.String bypass)
Method Detail |
---|
public MutableControl addBypassing(java.lang.Class<?> c, java.lang.String f)
MutableControl
addBypassing
in class MutableControl
public MutableControl addBypassing(Edge e)
MutableControl
addBypassing
in class MutableControl
public MutableControl addBypassing(java.lang.Class<?> c)
MutableControl
addBypassing
in class MutableControl
public MutableControl removeBypassing(java.lang.Class<?> c, java.lang.String f)
MutableControl
removeBypassing
in class MutableControl
public MutableControl removeBypassing(Edge e)
MutableControl
removeBypassing
in class MutableControl
public EdgeBypass addBuiltIn(java.lang.Class<?> c)
MutableControl
addBuiltIn
in class MutableControl
public EdgeBypass addBuiltIns(java.lang.Class<?>... cs)
MutableControl
addBuiltIns
in class MutableControl
public boolean skip(java.lang.Class<?> c, java.lang.String f)
Control
skip
in class Control
public boolean skip(Edge e)
Control
skip
in class Control
public boolean ignore(java.lang.Class<?> c, java.lang.String f)
Control
ignore
in class Control
public boolean ignore(Edge e)
Control
ignore
in class Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |