| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class contains a set of useful static methods for accepting a visitor by an enumeration
of elements, expressions, statements or references.
Methods acceptToAll just accept visitor by a specified enumeration of
elements, expressions, statements or references.
Methods acceptUntilStop behave more delicately, allowing to stop the process of accepting
when the result of acception the visitor by an element of enumeration equals to the
static variable STOP.
| Inner Class Summary | |
private static class | SciVisitorUtil.Stop |
| Field Summary | |
final static Object | STOPThis static variable is used to keep the "stop-sign" object. |
| Method Summary | |
static void | acceptToAll(SciElementEnumeration enum, SciElementVisitor visitor)Makes each SciElement from the specified enumeration accept the specified visitor. |
static void | acceptToAll(SciReferenceEnumeration enum, SciReferenceVisitor visitor)Makes each SciReference from the specified enumeration accept the specified visitor. |
static void | acceptToAll(SciStatementEnumeration enum, SciStatementVisitor visitor)Makes each SciStatement from the specified enumeration accept the specified visitor. |
static void | acceptToAll(SciExpressionEnumeration enum, SciExpressionVisitor visitor)Makes each SciExpression from the specified enumeration accept the specified visitor. |
static Object | acceptUntilStop(SciElementEnumeration enum, SciElementVisitor visitor)Makes each SciElement from the specified enumeration accept the specified visitor until
the result of accepting is equal to the static variable STOP. |
static Object | acceptUntilStop(SciReferenceEnumeration enum, SciReferenceVisitor visitor)Makes each SciReference from the specified enumeration accept the specified visitor until
the result of accepting is equal to the static variable STOP. |
static Object | acceptUntilStop(SciStatementEnumeration enum, SciStatementVisitor visitor)Makes each SciStatement from the specified enumeration accept the specified visitor until
the result of accepting is equal to the static variable STOP. |
static Object | acceptUntilStop(SciExpressionEnumeration enum, SciExpressionVisitor visitor)Makes each SciExpression from the specified enumeration accept the specified visitor until
the result of accepting is equal to the static variable STOP. |
| Field Detail |
public final static Object STOP
| Method Detail |
public static void acceptToAll(SciElementEnumeration enum, SciElementVisitor visitor)
SciElement from the specified enumeration accept the specified visitor.SciElementEnumeration of SciElementsSciElementVisitor to perform desired actionspublic static void acceptToAll(SciReferenceEnumeration enum, SciReferenceVisitor visitor)
SciReference from the specified enumeration accept the specified visitor.SciReferenceEnumeration of SciReferencesSciReferenceVisitor to perform desired actionspublic static void acceptToAll(SciStatementEnumeration enum, SciStatementVisitor visitor)
SciStatement from the specified enumeration accept the specified visitor.SciStatementEnumeration of SciStatementsSciStatementVisitor to perform desired actionspublic static void acceptToAll(SciExpressionEnumeration enum, SciExpressionVisitor visitor)
SciExpression from the specified enumeration accept the specified visitor.SciExpressionEnumeration of SciExpressionsSciExpressionVisitor to perform desired actionspublic static Object acceptUntilStop(SciElementEnumeration enum, SciElementVisitor visitor)
SciElement from the specified enumeration accept the specified visitor until
STOP.SciElementEnumeration of SciElementsSciElementVisitor to perform desired actionsSTOP variable if visitor's returned result is equal to the static
STOP, null otherwisepublic static Object acceptUntilStop(SciReferenceEnumeration enum, SciReferenceVisitor visitor)
SciReference from the specified enumeration accept the specified visitor until
STOP.SciReferenceEnumeration of SciReferencesSciReferenceVisitor to perform desired actionsSTOP variable if visitor's returned result is equal to the static
STOP, null otherwisepublic static Object acceptUntilStop(SciStatementEnumeration enum, SciStatementVisitor visitor)
SciStatement from the specified enumeration accept the specified visitor until
STOP.SciStatementEnumeration of SciStatementsSciStatementVisitor to perform desired actionsSTOP variable if visitor's returned result is equal to the static
STOP, null otherwisepublic static Object acceptUntilStop(SciExpressionEnumeration enum, SciExpressionVisitor visitor)
SciExpression from the specified enumeration accept the specified visitor until
STOP.SciExpressionEnumeration of SciExpressionsSciExpressionVisitor to perform desired actionsSTOP variable if visitor's returned result is equal to the static
STOP, null otherwise| Association Links |
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||