Interface IVisitor
-
- All Superinterfaces:
IMatchVisitor,IVisitor
- All Known Subinterfaces:
IBuildlangVisitor
- All Known Implementing Classes:
BuildlangExecution,BuildlangWriter,BuildResolverVisitor,ExpressionCopyVisitor,ExpressionVersionRestrictionValidator,RuleTreeVilVisitor,VariableFinder
public interface IVisitor extends IVisitor, IMatchVisitor
A visitor interface for the build language elements.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectvisitAlternativeExpression(AlternativeExpression alt)Visits an alternative.java.lang.ObjectvisitForStatement(ForStatement stmt)Visits a for statement.java.lang.ObjectvisitInstantiateExpression(InstantiateExpression inst)Visits an instantiate expression.java.lang.ObjectvisitJoinExpression(JoinExpression ex)Visits a join expression.java.lang.ObjectvisitJoinVariableDeclaration(JoinVariableDeclaration decl)Visits a join variable declaration.java.lang.ObjectvisitLoadProperties(LoadProperties properties)Visits a load properties directive.java.lang.ObjectvisitMapExpression(MapExpression map)Visits a map expression.java.lang.ObjectvisitRule(Rule rule)Visits a rule.java.lang.ObjectvisitRule(VtlRule rule)Visits a VTL mapping rule.java.lang.ObjectvisitRuleCallExpression(RuleCallExpression ex)Visits a rule call expression.java.lang.ObjectvisitScript(Script script)Visits a script.java.lang.ObjectvisitStrategyCallExpression(StrategyCallExpression call)Visits a strategy call node.java.lang.ObjectvisitWhileStatement(WhileStatement stmt)Visits a while statement.-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.buildlangModel.ruleMatch.IMatchVisitor
visitArtifactMatchExpression, visitBooleanMatchExpression, visitCollectionMatchExpression, visitCompoundMatchExpression, visitPathMatchExpression, visitStringMatchExpression
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.common.IVisitor
visitAdvice, visitCompound, visitExpressionStatement, visitTypedef, visitVariableDeclaration
-
-
-
-
Method Detail
-
visitScript
java.lang.Object visitScript(Script script) throws VilException
Visits a script.- Parameters:
script- the project instance- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitLoadProperties
java.lang.Object visitLoadProperties(LoadProperties properties) throws VilException
Visits a load properties directive.- Parameters:
properties- the load properties representation- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitStrategyCallExpression
java.lang.Object visitStrategyCallExpression(StrategyCallExpression call) throws VilException
Visits a strategy call node.- Parameters:
call- the node- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitRuleCallExpression
java.lang.Object visitRuleCallExpression(RuleCallExpression ex) throws VilException
Visits a rule call expression.- Parameters:
ex- the expression- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitJoinExpression
java.lang.Object visitJoinExpression(JoinExpression ex) throws VilException
Visits a join expression.- Parameters:
ex- the join expression- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitJoinVariableDeclaration
java.lang.Object visitJoinVariableDeclaration(JoinVariableDeclaration decl) throws VilException
Visits a join variable declaration.- Parameters:
decl- the declaration- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitAlternativeExpression
java.lang.Object visitAlternativeExpression(AlternativeExpression alt) throws VilException
Visits an alternative.- Parameters:
alt- the alternative- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitRule
java.lang.Object visitRule(Rule rule) throws VilException
Visits a rule.- Parameters:
rule- the rule- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitRule
java.lang.Object visitRule(VtlRule rule) throws VilException
Visits a VTL mapping rule.- Parameters:
rule- the rule- Returns:
- the result of visiting the given statement (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitMapExpression
java.lang.Object visitMapExpression(MapExpression map) throws VilException
Visits a map expression.- Parameters:
map- the expression to be visited- Returns:
- the result of visiting the given expression (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitWhileStatement
java.lang.Object visitWhileStatement(WhileStatement stmt) throws VilException
Visits a while statement.- Parameters:
stmt- the statement to be visited- Returns:
- the result of visiting the given expression (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitForStatement
java.lang.Object visitForStatement(ForStatement stmt) throws VilException
Visits a for statement.- Parameters:
stmt- the statement to be visited- Returns:
- the result of visiting the given expression (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
visitInstantiateExpression
java.lang.Object visitInstantiateExpression(InstantiateExpression inst) throws VilException
Visits an instantiate expression.- Parameters:
inst- the instantiation expression- Returns:
- the result of visiting the given expression (may be null)
- Throws:
VilException- in case that visiting fails (e.g., execution)
-
-