Package jason.asSyntax.parser
Class as2j
java.lang.Object
jason.asSyntax.parser.as2j
- All Implemented Interfaces:
as2jConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface jason.asSyntax.parser.as2jConstants
ATOM, CHAR, DEFAULT, DIGIT, EOF, LC_LETTER, LETTER, NUMBER, STRING, TK_BEGIN, TK_ELIF, TK_ELSE, TK_END, TK_FALSE, TK_FOR, TK_GOAL_CONDITION, TK_IF, TK_INTDIV, TK_INTMOD, TK_LABEL_AT, TK_LEFT_ARROW, TK_NEG, TK_NOT, TK_NS_SEP, TK_PAND, TK_POR, TK_RULE_SEP, TK_TRUE, TK_WHILE, tokenImage, UNNAMEDVAR, UNNAMEDVARID, UP_LETTER, VAR
-
Constructor Summary
ConstructorDescriptionas2j
(as2jTokenManager tm) Constructor with generated Token Manager.as2j
(InputStream stream) Constructor with InputStream.as2j
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final void
final Object
final Object
final Object
final Object
final Literal
belief()
final Object
final boolean
final Pred
final void
Disable tracing.final void
Enable tracing.final Term
function()
Generate ParseException.final Token
Get the next Token.getNS()
final Token
getToken
(int index) Get the specific Token.final Literal
final ListTermImpl
list()
final Literal
literal()
final Object
log_expr()
final Object
final Object
final Atom
final Plan
plan()
final Literal
final PlanBody
final PlanBody
final PlanBody
final Pred
final Pred
pred()
void
Reinitialise.void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.final Object
rel_expr()
final Term
void
void
setASLSource
(String src) void
final PlanBody
final PlanBody
final PlanBody
stmtFOR()
final PlanBody
stmtIF()
final PlanBody
final PlanBody
final StringTerm
string()
final Term
term()
final Term
final List
terms()
final Trigger
trigger()
final VarTerm
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
as2j
Constructor with InputStream. -
as2j
Constructor with InputStream and supplied encoding -
as2j
Constructor. -
as2j
Constructor with generated Token Manager.
-
-
Method Details
-
setAg
-
setNS
-
getNS
-
setASLSource
-
agent
- Throws:
ParseException
JasonException
-
agent_component
- Throws:
ParseException
JasonException
-
directive
- Throws:
ParseException
JasonException
-
directive_arguments
- Throws:
ParseException
-
belief
- Throws:
ParseException
-
initial_goal
- Throws:
ParseException
-
plan
- Throws:
ParseException
-
plan_annotation
- Throws:
ParseException
-
trigger
- Throws:
ParseException
-
plan_body
- Throws:
ParseException
-
plan_body_term
- Throws:
ParseException
-
plan_body_factor
- Throws:
ParseException
-
statement
- Throws:
ParseException
-
stmtIF
- Throws:
ParseException
-
stmtIFCommon
- Throws:
ParseException
-
stmtFOR
- Throws:
ParseException
-
stmtWHILE
- Throws:
ParseException
-
stmt_body
- Throws:
ParseException
-
body_formula
- Throws:
ParseException
-
rule_plan_term
- Throws:
ParseException
-
plan_term_annotation
- Throws:
ParseException
-
literal
- Throws:
ParseException
-
namespace
- Throws:
ParseException
-
pred
- Throws:
ParseException
-
terms
- Throws:
ParseException
-
term
- Throws:
ParseException
-
list
- Throws:
ParseException
-
term_in_list
- Throws:
ParseException
-
log_expr
- Throws:
ParseException
-
log_expr_trm
- Throws:
ParseException
-
log_expr_factor
- Throws:
ParseException
-
rel_expr
- Throws:
ParseException
-
arithm_expr
- Throws:
ParseException
-
arithm_expr_trm
- Throws:
ParseException
-
arithm_expr_factor
- Throws:
ParseException
-
arithm_expr_simple
- Throws:
ParseException
-
function
- Throws:
ParseException
-
var
- Throws:
ParseException
-
string
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-