|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectJADE_SL.lang.sl.SLParser
SLParser. This same parser embeds also lower profiles of SL, namely SL-0, SL-1 and SL-2.
| Field Summary | |
(package private) Ontology |
curOntology
|
private java.util.Vector |
jj_expentries
|
private int[] |
jj_expentry
|
private int |
jj_gen
|
(package private) ASCII_CharStream |
jj_input_stream
|
private int |
jj_kind
|
private int[] |
jj_la1
|
private int[] |
jj_la1_0
|
private int[] |
jj_la1_1
|
Token |
jj_nt
|
private int |
jj_ntk
|
(package private) int |
slType
(0 for FIPa-SL0, 1 for SL1, 2 for SL2, >2 for full SL) |
Token |
token
|
SLParserTokenManager |
token_source
|
| Fields inherited from interface JADE_SL.lang.sl.SLParserConstants |
ACTION, ACTIONOP, ACTIONOPLL, ARITHMETICOP, BINARYLOGICALOP, DATETIME, DEFAULT, EOF, FLOATONE, FLOATTWO, HEXINTEGER, INTEGER, LBRACE, LBRACE2, MODALOP, OPERATORSTATE, PARAMETERNAME, QUANTIFIER, RBRACE, RBRACE2, REFERENTIALOP, STRING_LITERAL, STRING_LITERAL2, tokenImage, UNARYLOGICALOP, VARIABLE, WORD, WORD2 |
| Constructor Summary | |
SLParser(java.io.InputStream stream)
|
|
SLParser(java.io.Reader stream)
|
|
SLParser(SLParserTokenManager tm)
|
|
| Method Summary | |
AbsAgentAction |
ActionExpression_NoBrace()
|
AbsAgentAction |
ActionExpression()
|
AbsPrimitive |
Constant()
|
AbsContentElementList |
Content()
This production rule represents the more general expression that can serve as content for an ACL message. |
AbsContentElement |
ContentExpression_NoBrace()
|
AbsContentElement |
ContentExpression()
|
void |
disable_tracing()
|
void |
enable_tracing()
|
AbsConcept |
FunctionalTerm_NoBrace()
|
void |
FunctionalTermParameters(AbsConcept val)
|
ParseException |
generateParseException()
|
Token |
getNextToken()
|
Token |
getToken(int index)
|
AbsIRE |
IdentifyingExpression_NoBrace()
|
private Token |
jj_consume_token(int kind)
|
private int |
jj_ntk()
|
void |
LBrace()
Left Brace in all of the possible states of the Token Manager |
static void |
main(java.lang.String[] args)
|
AbsPrimitive |
Number()
|
void |
Parameter(AbsConcept val)
|
(package private) AbsContentElement |
parse(Ontology o,
java.lang.String content)
|
void |
RBrace()
Right Brace in all of the possible states of the Token Manager |
void |
ReInit(java.io.InputStream stream)
|
void |
ReInit(java.io.Reader stream)
|
void |
ReInit(SLParserTokenManager tm)
|
(package private) void |
setSLType(int slType)
By default an object of this type implements a Full SLParser. |
java.lang.String |
String()
String = WORD | STRING_LITERAL |
AbsTerm |
Term()
|
private AbsTerm |
toAbsAgentAction(AbsTerm t)
When an ActionExpression is parsed, if it is an AbsConcept then it must be casted upto an AbsAgentAction. |
private java.lang.String |
unescape(java.lang.String s)
|
AbsVariable |
Variable()
|
AbsPredicate |
Wff_NoBrace()
|
AbsPredicate |
Wff()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
Ontology curOntology
int slType
public SLParserTokenManager token_source
ASCII_CharStream jj_input_stream
public Token token
public Token jj_nt
private int jj_ntk
private int jj_gen
private final int[] jj_la1
private final int[] jj_la1_0
private final int[] jj_la1_1
private java.util.Vector jj_expentries
private int[] jj_expentry
private int jj_kind
| Constructor Detail |
public SLParser(java.io.InputStream stream)
public SLParser(java.io.Reader stream)
public SLParser(SLParserTokenManager tm)
| Method Detail |
private java.lang.String unescape(java.lang.String s)
private AbsTerm toAbsAgentAction(AbsTerm t)
void setSLType(int slType)
slType - (0 for FIPa-SL0, 1 for SL1, 2 for SL2, >2 for full SL)
AbsContentElement parse(Ontology o,
java.lang.String content)
throws ParseException,
TokenMgrError
content - the content to be parsedo - the ontology, null if no ontology (this parameter is used to get the names of the slots
when they are encoded as unnamed slots.
ParseException
TokenMgrErrorpublic static void main(java.lang.String[] args)
public final AbsContentElementList Content()
throws ParseException
request, predicate for inform, etc.), any
allowed SL content expression can be parsed from here.
ParseException
public final void LBrace()
throws ParseException
ParseException
public final void RBrace()
throws ParseException
ParseException
public final AbsContentElement ContentExpression()
throws ParseException
ParseException
public final AbsContentElement ContentExpression_NoBrace()
throws ParseException
ParseException
public final AbsIRE IdentifyingExpression_NoBrace()
throws ParseException
ParseException
public final AbsVariable Variable()
throws ParseException
ParseException
public final AbsTerm Term()
throws ParseException
ParseException
public final AbsPrimitive Constant()
throws ParseException
ParseException
public final AbsConcept FunctionalTerm_NoBrace()
throws ParseException
ParseException
public final void FunctionalTermParameters(AbsConcept val)
throws ParseException
ParseException
public final void Parameter(AbsConcept val)
throws ParseException
ParseException
public final AbsAgentAction ActionExpression_NoBrace()
throws ParseException
ParseException
public final AbsAgentAction ActionExpression()
throws ParseException
ParseException
public final AbsPredicate Wff()
throws ParseException
ParseException
public final AbsPredicate Wff_NoBrace()
throws ParseException
ParseException
public final AbsPrimitive Number()
throws ParseException
ParseException
public final java.lang.String String()
throws ParseException
String = WORD | STRING_LITERAL
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.Reader stream)
public void ReInit(SLParserTokenManager tm)
private final Token jj_consume_token(int kind)
throws ParseException
ParseExceptionpublic final Token getNextToken()
public final Token getToken(int index)
private final int jj_ntk()
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||