|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.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 while Traversing. Essentially it is a boolean function object:
Boolean bypass(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(java.lang.Class<?>... cs)
Bypass all the edges of the given classes |
|
EdgeBypass(Edge... edges)
|
|
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 |
void |
addBypassing(java.lang.Class<?> c)
Adds all immediate fields of the given Class to be Bypassed |
void |
addBypassing(java.lang.Class<?> c,
java.lang.String f)
Adds the given Class/Field to be Bypassed |
void |
addBypassing(Edge e)
Adds the given Edge to be Bypassed |
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, nowhere, only, only, only, only |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 void addBypassing(java.lang.Class<?> c,
java.lang.String f)
MutableControl
addBypassing in class MutableControlpublic void addBypassing(Edge e)
MutableControl
addBypassing in class MutableControlpublic void addBypassing(java.lang.Class<?> c)
MutableControl
addBypassing in class MutableControlpublic EdgeBypass addBuiltIn(java.lang.Class<?> c)
MutableControl
addBuiltIn in class MutableControlpublic 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 Controlpublic boolean skip(Edge e)
Control
skip in class Control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||