Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.core.processor
Class SRAIProcessor  view SRAIProcessor download SRAIProcessor.java

java.lang.Object
  extended byorg.alicebot.server.core.processor.Processor
      extended byorg.alicebot.server.core.processor.AIMLProcessor
          extended byorg.alicebot.server.core.processor.SRAIProcessor

public class SRAIProcessor
extends AIMLProcessor

Implements the <srai/> element.

Version:
4.1.3

Field Summary
static java.lang.String label
           
 
Fields inherited from class org.alicebot.server.core.processor.Processor
EMPTY_STRING, ENABLED, ID, NAME, NAME_EQUALS, VALUE, VALUE_EQUALS
 
Constructor Summary
SRAIProcessor()
           
 
Method Summary
 java.lang.String process(int level, org.alicebot.server.core.parser.XMLNode tag, org.alicebot.server.core.parser.TemplateParser parser)
          Processes a <srai/> element.
 
Methods inherited from class org.alicebot.server.core.processor.AIMLProcessor
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

public static final java.lang.String label
See Also:
Constant Field Values
Constructor Detail

SRAIProcessor

public SRAIProcessor()
Method Detail

process

public java.lang.String process(int level,
                                org.alicebot.server.core.parser.XMLNode tag,
                                org.alicebot.server.core.parser.TemplateParser parser)
                         throws AIMLProcessorException
Processes a <srai/> element. First, all elements contained within a given <srai/> are evaluated, and the result is recursively fed as input to the pattern matching process. The result of such evaluation (which itself might be recursive) is returned as the result.

Specified by:
process in class AIMLProcessor