LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.grammar.CParserAgent Class Reference

default agent parser More...

+ Inheritance diagram for org.lightjason.agentspeak.grammar.CParserAgent:
+ Collaboration diagram for org.lightjason.agentspeak.grammar.CParserAgent:

Public Member Functions

 CParserAgent ( @Nonnull final Set< IAction > p_actions) throws NoSuchMethodException
 ctor More...
 
final IASTVisitorAgent parse (final InputStream p_stream) throws Exception
 

Protected Member Functions

final Class< AgentLexer > lexerclass ()
 
final Class< AgentParser > parserclass ()
 
- Protected Member Functions inherited from org.lightjason.agentspeak.grammar.IBaseParser< IASTVisitorAgent, AgentLexer, AgentParser >
 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 Set< IActionm_actions
 set with actions More...
 

Detailed Description

Definition at line 36 of file CParserAgent.java.

Constructor & Destructor Documentation

◆ CParserAgent()

org.lightjason.agentspeak.grammar.CParserAgent.CParserAgent ( @Nonnull final Set< IAction p_actions) throws NoSuchMethodException
Parameters
p_actionsagent actions
Exceptions
NoSuchMethodExceptionon ctor-method call

Definition at line 49 of file CParserAgent.java.

Member Function Documentation

◆ lexerclass()

final Class<AgentLexer> org.lightjason.agentspeak.grammar.CParserAgent.lexerclass ( )
protected

Definition at line 65 of file CParserAgent.java.

◆ parse()

final IASTVisitorAgent org.lightjason.agentspeak.grammar.CParserAgent.parse ( final InputStream  p_stream) throws Exception

Definition at line 57 of file CParserAgent.java.

References org.lightjason.agentspeak.grammar.IBaseParser< IASTVisitorAgent, AgentLexer, AgentParser >.parser().

Referenced by org.lightjason.agentspeak.generator.IBaseAgentGenerator< IAgent<?> >.IBaseAgentGenerator().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parserclass()

final Class<AgentParser> org.lightjason.agentspeak.grammar.CParserAgent.parserclass ( )
protected

Definition at line 71 of file CParserAgent.java.

Member Data Documentation

◆ m_actions

final Set<IAction> org.lightjason.agentspeak.grammar.CParserAgent.m_actions
private

Definition at line 41 of file CParserAgent.java.