Class ARule
java.lang.Object
edu.unc.cs.comp524.parsers.prolog.ARelation
edu.unc.cs.comp524.parsers.prolog.ARule
public final class ARule extends ARelation implements Rule
The default concrete
Rule implementation.-
Constructor Summary
Constructors Constructor Description ARule(PrologParser.AtomContext atom, PrologParser.TermlistContext termlist, Optional<Comment> comment, List<RuleInvocation> rhs)Constructor for use withPrologParser-related objects.ARule(String name, List<org.antlr.v4.runtime.tree.ParseTree> args, Optional<Comment> comment, List<RuleInvocation> rhs) -
Method Summary
-
Constructor Details
-
ARule
public ARule(PrologParser.AtomContext atom, PrologParser.TermlistContext termlist, Optional<Comment> comment, List<RuleInvocation> rhs)Constructor for use withPrologParser-related objects.- Parameters:
atom- Context from which to deriveARelation.nametermlist- Context from which to deriveARelation.args
-
ARule
-
-
Method Details