Package jade.lang.acl
Class ACLParser
- java.lang.Object
-
- jade.lang.acl.ACLParser
-
- All Implemented Interfaces:
ACLParserConstants
public class ACLParser extends Object implements ACLParserConstants
Javadoc documentation for the file- Version:
- $Date: 2005-04-15 17:50:12 +0200 (Fri, 15 Apr 2005) $ $Revision: 5671 $
- Author:
- Fabio Bellifemine - CSELT S.p.A
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntTokentokenACLParserTokenManagertoken_source-
Fields inherited from interface jade.lang.acl.ACLParserConstants
ADDRESSES, AID, AIDSTATE, CONTENT, CONTENTSTATE, CONVERSATION_ID, DATETIME, DEFAULT, DIGIT, ENCODING, END, EOF, FLOATONE, FLOATTWO, IN_REPLY_TO, INTEGER, LANGUAGE, LBRACE, LBRACE2, MESSAGEPARAMETERSTATE, MESSAGETYPE, MESSAGETYPESTATE, NAME, ONTOLOGY, PREFIXBYTELENGTHENCODEDSTRING, PROTOCOL, RBRACE, RBRACE2, RECEIVER, REPLY_BY, REPLY_TO, REPLY_WITH, RESOLVERS, SENDER, SEQUENCE, SET, START, STRINGLITERAL, tokenImage, USERDEFINEDPARAM, USERDEFINEDSLOT, WORD
-
-
Constructor Summary
Constructors Constructor Description ACLParser(ACLParserTokenManager tm)ACLParser(InputStream stream)ACLParser(Reader stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AIDAgentIdentifier()StringByteLengthEncodedString()StringContent()static ACLParsercreate()StringDateTimeToken()StringDigit()voiddisable_tracing()voidenable_tracing()StringExpression()StringFloat()ParseExceptiongenerateParseException()TokengetNextToken()TokengetToken(int index)StringInteger()static voidmain(String[] args)ACLMessageMessage()voidMessageParameter()voidMessageType()StringNumber()ACLMessageparse(Reader text)AIDparseAID(Reader text)voidReInit(ACLParserTokenManager tm)voidReInit(InputStream stream)voidReInit(Reader stream)StringStringa()StringStringLiteral()StringWord()
-
-
-
Field Detail
-
token_source
public ACLParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
-
Constructor Detail
-
ACLParser
public ACLParser(InputStream stream)
-
ACLParser
public ACLParser(Reader stream)
-
ACLParser
public ACLParser(ACLParserTokenManager tm)
-
-
Method Detail
-
main
public static void main(String[] args) throws ParseException
- Throws:
ParseException
-
create
public static ACLParser create()
-
parse
public ACLMessage parse(Reader text) throws ParseException
- Throws:
ParseException
-
parseAID
public AID parseAID(Reader text) throws ParseException
- Throws:
ParseException
-
Message
public final ACLMessage Message() throws ParseException
- Throws:
ParseException
-
MessageType
public final void MessageType() throws ParseException- Throws:
ParseException
-
MessageParameter
public final void MessageParameter() throws ParseException- Throws:
ParseException
-
Content
public final String Content() throws ParseException
- Throws:
ParseException
-
AgentIdentifier
public final AID AgentIdentifier() throws ParseException
- Throws:
ParseException
-
Expression
public final String Expression() throws ParseException
- Throws:
ParseException
-
Word
public final String Word() throws ParseException
- Throws:
ParseException
-
Stringa
public final String Stringa() throws ParseException
- Throws:
ParseException
-
StringLiteral
public final String StringLiteral() throws ParseException
- Throws:
ParseException
-
ByteLengthEncodedString
public final String ByteLengthEncodedString() throws ParseException
- Throws:
ParseException
-
Number
public final String Number() throws ParseException
- Throws:
ParseException
-
DateTimeToken
public final String DateTimeToken() throws ParseException
- Throws:
ParseException
-
Digit
public final String Digit() throws ParseException
- Throws:
ParseException
-
Integer
public final String Integer() throws ParseException
- Throws:
ParseException
-
Float
public final String Float() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
-
ReInit
public void ReInit(Reader stream)
-
ReInit
public void ReInit(ACLParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-