Package org.tweetyproject.lp.asp.parser
Class InstantiateVisitor
java.lang.Object
org.tweetyproject.lp.asp.parser.InstantiateVisitor
- All Implemented Interfaces:
ASPParserVisitor
This visitor iterates over the AST generated by ASPParser and allocates
classes representing the different parts of an ASP program or source file,
meaning rules, literals, terms, answer sets, etc.
- Author:
- Anna Gessler
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluateAggrFunc
(String func) evaluateArithop
(String sop) static ASPOperator.BinaryOperator
evaluateBinop
(String op) visit
(ASTAggregate node, Object data) visit
(ASTAggrElementList node, Object data) visit
(ASTAggrElement node, Object data) visit
(ASTAggrFunc node, Object data) visit
(ASTAnswerSet node, Object data) Term<?>
visit
(ASTAriTerm node, Object data) visit
(ASTArithop node, Object data) visit
(ASTBodyList node, Object data) visit
(ASTBuiltInAtom node, Object data) visit
(ASTChoiceElementList node, Object data) visit
(ASTChoiceElement node, Object data) visit
(ASTClingoID node, Object data) visit
(ASTClingoMeta node, Object data) visit
(ASTDlvArithmeticID node, Object data) visit
(ASTHeadElementsList node, Object data) visit
(ASTLiteral node, Object data) visit
(ASTNAFLiteralList node, Object data) visit
(ASTNAFLiteral node, Object data) visit
(ASTOptElementList node, Object data) visit
(ASTOptElement node, Object data) visit
(ASTOptFunc node, Object data) visit
(ASTProgram node, Object data) visit
(ASTRuleList node, Object data) visit
(ASTTermList node, Object data) Term<?>
visit
(SimpleNode node, Object data)
-
Constructor Details
-
InstantiateVisitor
public InstantiateVisitor()
-
-
Method Details
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
evaluateAggrFunc
- Throws:
ParseException
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
evaluateBinop
- Throws:
ParseException
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
evaluateArithop
- Throws:
ParseException
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-
visit
- Specified by:
visit
in interfaceASPParserVisitor
- Parameters:
node
- nodedata
- data- Returns:
- object
-