|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.util.Match
public class Match
Match
implements an object to store the results of
matching, most notably the stacks resulting from multiple input/that/topic
wildcards.
Field Summary | |
---|---|
static java.lang.String |
SPACE
A space. |
Constructor Summary | |
---|---|
Match()
|
Method Summary | |
---|---|
java.lang.String |
getFileName()
Gets the filename from which the <template/> originally came. |
java.util.ArrayList |
getInputStars()
Returns the input stars. |
Nodemapper |
getNodemapper()
Returns the match-resulting nodemapper. |
java.lang.String |
getPath()
Returns the match path. |
java.lang.String |
getPattern()
Returns the pattern part of the matched path. |
java.lang.String |
getTemplate()
Gets the template attached to this node. |
java.lang.String |
getThat()
Returns the that part of the matched path. |
java.util.ArrayList |
getThatStars()
Returns the <that/> stars. |
java.lang.String |
getTopic()
Returns the topic part of the matched path. |
java.util.ArrayList |
getTopicStars()
Returns the <topic/> stars. |
void |
pushInputStar(java.lang.String string)
Pushes a new input star onto the input stack. |
void |
pushThatStar(java.lang.String string)
Pushes a new that star onto the thatstar stack. |
void |
pushTopicStar(java.lang.String string)
Pushes a new topic star onto the topicstar stack. |
void |
setBotID(java.lang.String string)
Sets the botid part of the matched path. |
void |
setNodemapper(Nodemapper nodemapper)
Set the match-resulting nodemapper. |
void |
setPattern(java.lang.String string)
Sets the pattern part of the matched path. |
void |
setThat(java.lang.String string)
Sets the that part of the matched path. |
void |
setTopic(java.lang.String string)
Sets the topic part of the matched path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SPACE
Constructor Detail |
---|
public Match()
Method Detail |
---|
public void pushInputStar(java.lang.String string)
string
- the string to push onto the input stackpublic void pushThatStar(java.lang.String string)
string
- the string to push onto the thatstar stackpublic void pushTopicStar(java.lang.String string)
string
- the string to push onto the topicstar stackpublic void setPattern(java.lang.String string)
pattern
part of the matched path.
string
- the pattern
part of the matched pathpublic void setThat(java.lang.String string)
that
part of the matched path.
string
- the that
part of the matched pathpublic void setTopic(java.lang.String string)
topic
part of the matched path.
string
- the topic
part of the matched pathpublic void setBotID(java.lang.String string)
botid
part of the matched path.
string
- the botid
part of the matched pathpublic void setNodemapper(Nodemapper nodemapper)
node
- the match-resulting nodemapperpublic java.lang.String getPattern()
pattern
part of the matched path.
pattern
part of the matched pathpublic java.lang.String getThat()
that
part of the matched path.
that
part of the matched pathpublic java.lang.String getTopic()
topic
part of the matched path.
topic
part of the matched pathpublic java.lang.String getPath()
public Nodemapper getNodemapper()
public java.lang.String getTemplate()
public java.lang.String getFileName()
public java.util.ArrayList getInputStars()
public java.util.ArrayList getThatStars()
public java.util.ArrayList getTopicStars()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |