fuzzyowl2.parser
Class Parser

java.lang.Object
  extended by fuzzyowl2.parser.Parser
All Implemented Interfaces:
ParserConstants

public class Parser
extends java.lang.Object
implements ParserConstants

Parses an OWL 2 annotation into fuzzyDL syntax.

Author:
Fernando Bobillo

Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 ParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface fuzzyowl2.parser.ParserConstants
A, AXIOM, B, BASE, C, CLOSE_TAG, COM, CONCEPT, CONCEPT_DEF, CONCEPTS, CP, CSB, D, DATATYPE, DATATYPE_DEF, DEFAULT, DEGREE_DEF, DEGREE_VALUE, EOF, EOL, EQL, FUZZY_DEF, FUZZY_NOMINAL, FUZZYOWL2, FUZZYTYPE, GEQ, GOEDEL, GRE, IDENTIFIER, INDIVIDUAL, LEQ, LES, LINEAR, LOGIC, LS, LUKASIEWICZ, MODIFIED, MODIFIER, MODIFIER_DEF, NAME, NUMBER, ONTOLOGY, OP, OPEN_TAG, OSB, OWA, PRODUCT, QOWA, QUANTIFIER, ROLE, ROLE_DEF, RS, SLASH, tokenImage, TRAP, TRI, TYPE, WEIGHT, WEIGHTED, WEIGHTED_SUM, WEIGHTS, ZADEH
 
Constructor Summary
Parser(java.io.InputStream stream)
          Constructor with InputStream.
Parser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
Parser(ParserTokenManager tm)
          Constructor with generated Token Manager.
Parser(java.io.Reader stream)
          Constructor.
 
Method Summary
 double Axiom()
           
 void CommonBeginning()
           
 void CommonEnd()
           
 java.lang.Object DatatypeOrModifier()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
static java.lang.Object getDatatype(java.lang.String s)
           
static ConceptDefinition getDefinedConcept(java.lang.String s)
           
static PropertyDefinition getDefinedProperty(java.lang.String s)
           
static double getDegree(java.lang.String s)
           
 FuzzyLogic getFuzzyLogic()
           
static FuzzyLogic getLogic(java.lang.String s)
           
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 ConceptDefinition readConcept()
           
 PropertyDefinition readProperty()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(ParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

Parser

public Parser(java.io.InputStream stream)
Constructor with InputStream.


Parser

public Parser(java.io.InputStream stream,
              java.lang.String encoding)
Constructor with InputStream and supplied encoding


Parser

public Parser(java.io.Reader stream)
Constructor.


Parser

public Parser(ParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

getDegree

public static double getDegree(java.lang.String s)

getLogic

public static FuzzyLogic getLogic(java.lang.String s)

getDefinedConcept

public static ConceptDefinition getDefinedConcept(java.lang.String s)

getDefinedProperty

public static PropertyDefinition getDefinedProperty(java.lang.String s)

getDatatype

public static java.lang.Object getDatatype(java.lang.String s)

readConcept

public final ConceptDefinition readConcept()
                                    throws ParseException
Throws:
ParseException

readProperty

public final PropertyDefinition readProperty()
                                      throws ParseException
Throws:
ParseException

CommonBeginning

public final void CommonBeginning()
                           throws ParseException
Throws:
ParseException

CommonEnd

public final void CommonEnd()
                     throws ParseException
Throws:
ParseException

DatatypeOrModifier

public final java.lang.Object DatatypeOrModifier()
                                          throws ParseException
Throws:
ParseException

Axiom

public final double Axiom()
                   throws ParseException
Throws:
ParseException

getFuzzyLogic

public final FuzzyLogic getFuzzyLogic()
                               throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(ParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.