LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser > Class Template Referenceabstract

generic default parser More...

+ Inheritance diagram for org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >:
+ Collaboration diagram for org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >:

Protected Member Functions

 IBaseParser ( @Nonnull final ANTLRErrorListener p_errorlistener) throws NoSuchMethodException
 ctor More...
 
abstract Class< L > lexerclass ()
 returns the lexer class reference More...
 
final P parser ( @Nonnull final InputStream p_stream) throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException
 returns a parser component More...
 
abstract Class< P > parserclass ()
 returns the parser class reference More...
 

Private Attributes

final Constructor< L > m_ctorlexer
 ctor lexer reference More...
 
final Constructor< P > m_ctorparser
 ctor parser reference More...
 
final ANTLRErrorListener m_errorlistener
 error listener More...
 

Additional Inherited Members

- Public Member Functions inherited from org.lightjason.agentspeak.grammar.IParser< T >
parse (final InputStream p_stream) throws Exception
 parsing code More...
 

Detailed Description

Definition at line 44 of file IBaseParser.java.

Constructor & Destructor Documentation

◆ IBaseParser()

org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.IBaseParser ( @Nonnull final ANTLRErrorListener  p_errorlistener) throws NoSuchMethodException
protected
Parameters
p_errorlistenerlistener instance
Exceptions
NoSuchMethodExceptionon ctor-method call

Definition at line 66 of file IBaseParser.java.

Member Function Documentation

◆ lexerclass()

abstract Class<L> org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.lexerclass ( )
abstractprotected
Returns
class of lexer

Referenced by org.lightjason.agentspeak.grammar.IBaseParser< IASTVisitorType, TypeLexer, TypeParser >.IBaseParser(), and org.lightjason.agentspeak.grammar.IBaseParser< IASTVisitorType, TypeLexer, TypeParser >.parser().

+ Here is the caller graph for this function:

◆ parser()

final P org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.parser ( @Nonnull final InputStream  p_stream) throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException
protected
Parameters
p_streaminput stream
Returns
parser (for using in visitor interface)
Exceptions
IOExceptionon io-stream errors
IllegalAccessExceptionon lexer / parser method access error
InvocationTargetExceptionon lexer / parser invocation error
InstantiationExceptionon lexer / parser instantiation error

Definition at line 84 of file IBaseParser.java.

Referenced by org.lightjason.agentspeak.language.CLiteral.CParser.parse().

+ Here is the caller graph for this function:

◆ parserclass()

abstract Class<P> org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.parserclass ( )
abstractprotected
Returns
class of parser

Referenced by org.lightjason.agentspeak.grammar.IBaseParser< IASTVisitorType, TypeLexer, TypeParser >.IBaseParser(), and org.lightjason.agentspeak.grammar.IBaseParser< IASTVisitorType, TypeLexer, TypeParser >.parser().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_ctorlexer

final Constructor<L> org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.m_ctorlexer
private

Definition at line 53 of file IBaseParser.java.

◆ m_ctorparser

final Constructor<P> org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.m_ctorparser
private

Definition at line 57 of file IBaseParser.java.

◆ m_errorlistener

final ANTLRErrorListener org.lightjason.agentspeak.grammar.IBaseParser< T extends IASTVisitor, L extends Lexer, P extends Parser >.m_errorlistener
private

Definition at line 49 of file IBaseParser.java.