Source code: org/alicebot/server/core/processor/ThinkProcessor.java
1 // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
2 // Jad home page: http://www.geocities.com/kpdus/jad.html
3 // Decompiler options: packimports(3)
4
5 package org.alicebot.server.core.processor;
6
7 import org.alicebot.server.core.parser.TemplateParser;
8 import org.alicebot.server.core.parser.XMLNode;
9
10 // Referenced classes of package org.alicebot.server.core.processor:
11 // AIMLProcessor, AIMLProcessorException
12
13 public class ThinkProcessor extends AIMLProcessor
14 {
15
16 public ThinkProcessor()
17 {
18 }
19
20 public String process(int i, XMLNode xmlnode, TemplateParser templateparser)
21 throws AIMLProcessorException
22 {
23 if(xmlnode.XMLType == 0)
24 {
25 templateparser.evaluate(i++, xmlnode.XMLChild);
26 return "";
27 } else
28 {
29 throw new AIMLProcessorException("<think></think> must have content!");
30 }
31 }
32
33 public static final String label = "think";
34 }