org.aselect.agent.authorization.parsing
Class AuthorizationRuleScanner

java.lang.Object
  extended by org.aselect.agent.authorization.parsing.AuthorizationRuleScanner

public class AuthorizationRuleScanner
extends java.lang.Object

Scanner for evaluation rules.

Description:
This scanner is generated with JLex and can be used to scan authorization rules with the following syntax:

 AuthorizationRule              ::=     Expression
 
 Expression                     ::=     SimpleExpression {LogicExpression}
 Expression                     ::=     '!' Expression { LogicExpression }
 Expression                     ::=     '(' Expression ')' { LogicExpression }
 
 LogicExpression                ::=     '&' Expression | '|' Expression
 
 SimpleExpression               ::=     Key { Operator Value }
 SimpleExpression               ::=     Key '=r' RegularExpression
 SimpleExpression               ::=     Key '=w' WildcardExpression
 SimpleExpression               ::=     Key 'in' ValueList
 
 Key                            ::=     UnquotedString
 Value                          ::=     String
 Operator                               ::=     '<' | '<=' | '>' | '>=' | '=' | '!=' 
 ValueList                      ::=     '[' Value { ',' Value } ']'
 RegularExpression              ::=     String 
 WildcardExpression             ::=     String
 Number                         ::=     [0-9] { Number }
 String                         ::=     UnquotedString | QuotedString
 UnquotedString                 ::=     [0-9a-zA-Z_.@*?/] { UnquotedString }
 QuotedString                   ::=     '�' . '�' | '"' . '"'
 

The scanner creates AuthorizationRuleToken tokens.

Concurrency issues:
-

Author:
Alfa & Ariss

Constructor Summary
AuthorizationRuleScanner(java.io.InputStream instream)
           
AuthorizationRuleScanner(java.io.Reader reader)
           
 
Method Summary
 AuthorizationRuleToken scan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationRuleScanner

public AuthorizationRuleScanner(java.io.Reader reader)

AuthorizationRuleScanner

public AuthorizationRuleScanner(java.io.InputStream instream)
Method Detail

scan

public AuthorizationRuleToken scan()
                            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 SURFnet BV. All Rights Reserved.