Skip navigation links
rivescript-core 0.10.0
A B C D E F G H I J L M N O P Q R S T U V 

A

addArray(String, List<String>) - Method in class com.rivescript.ast.Begin
Adds an array.
addCondition(String) - Method in class com.rivescript.ast.Trigger
Adds the given condition to this trigger.
addErrorMessage(String, String) - Method in class com.rivescript.Config.Builder
Adds a custom error message override.
addGlobal(String, String) - Method in class com.rivescript.ast.Begin
Adds a global variable.
addHistory(String, String, String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
addHistory(String, String, String) - Method in class com.rivescript.session.NoOpSessionManager
 
addHistory(String, String, String) - Method in interface com.rivescript.session.SessionManager
Adds input and reply to a user's history.
addInclude(String, boolean) - Method in class com.rivescript.ast.Topic
Adds the given include to this topic.
addInherit(String, boolean) - Method in class com.rivescript.ast.Topic
Adds the given inherit to this topic.
addObject(ObjectMacro) - Method in class com.rivescript.ast.Root
Adds the given object.
addPerson(String, String) - Method in class com.rivescript.ast.Begin
Adds a person variable
addReply(String) - Method in class com.rivescript.ast.Trigger
Adds the given reply to this trigger.
addSub(String, String) - Method in class com.rivescript.ast.Begin
Adds a substitution variable.
addThats(String, List<SortedTriggerEntry>) - Method in class com.rivescript.sorting.SortBuffer
 
addTopic(String) - Method in class com.rivescript.ast.Root
Adds a new topic with the given name.
addTopic(String, List<SortedTriggerEntry>) - Method in class com.rivescript.sorting.SortBuffer
 
addTrigger(Trigger) - Method in class com.rivescript.ast.Topic
Adds the given trigger to this topic.
addVar(String, String) - Method in class com.rivescript.ast.Begin
Adds a bot variable.

B

basic() - Static method in class com.rivescript.Config
Creates a basic Config.
basic() - Static method in class com.rivescript.Config.Builder
Creates a basic Config.Builder.
Begin - Class in com.rivescript.ast
Represents the "begin block" (configuration) data.
Begin() - Constructor for class com.rivescript.ast.Begin
 
build() - Method in class com.rivescript.Config.Builder
Builds the config.
build() - Method in class com.rivescript.parser.ParserConfig.Builder
Builds the parser config.

C

call(RiveScript, String, String[]) - Method in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Handler for when a user invokes the object.
call(RiveScript, String, String[]) - Method in class com.rivescript.lang.Perl
Handler for when a user invokes the object.
call(RiveScript, String, String[]) - Method in interface com.rivescript.macro.ObjectHandler
Handler for when a user invokes the object.
call(RiveScript, String[]) - Method in interface com.rivescript.macro.Subroutine
The implemenatation of the Java object macro.
CANNOT_DIVIDE_BY_ZERO_KEY - Static variable in class com.rivescript.RiveScript
 
CANNOT_MATH_VALUE_KEY - Static variable in class com.rivescript.RiveScript
 
CANNOT_MATH_VARIABLE_KEY - Static variable in class com.rivescript.RiveScript
 
clear(String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
clear(String) - Method in class com.rivescript.session.NoOpSessionManager
 
clear(String) - Method in interface com.rivescript.session.SessionManager
Clears a user's variables.
clearAll() - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
clearAll() - Method in class com.rivescript.session.NoOpSessionManager
 
clearAll() - Method in interface com.rivescript.session.SessionManager
Clear all variables of all users.
clearAllUservars() - Method in class com.rivescript.RiveScript
Clears all variables for all users.
clearUservars(String) - Method in class com.rivescript.RiveScript
Clears a user's variables.
codeDelimiter - Variable in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
 
com.rivescript - package com.rivescript
 
com.rivescript.ast - package com.rivescript.ast
Provides Abstract Syntax Tree (AST) classes.
com.rivescript.cmd - package com.rivescript.cmd
Provides command classes.
com.rivescript.exception - package com.rivescript.exception
Provides exception classes.
com.rivescript.lang - package com.rivescript.lang
Provides programming language support classes.
com.rivescript.lang.groovy - package com.rivescript.lang.groovy
Provides Groovy programming language support classes.
com.rivescript.lang.javascript - package com.rivescript.lang.javascript
Provides JavaScript programming language support classes.
com.rivescript.lang.jsr223 - package com.rivescript.lang.jsr223
Provides JSR-223 Java Scripting programming language support classes.
com.rivescript.lang.ruby - package com.rivescript.lang.ruby
Provides Ruby programming language support classes.
com.rivescript.macro - package com.rivescript.macro
Provides macro classes.
com.rivescript.parser - package com.rivescript.parser
Provides parser classes.
com.rivescript.regexp - package com.rivescript.regexp
Provides regular expression classes.
com.rivescript.session - package com.rivescript.session
Provides session manager classes.
com.rivescript.sorting - package com.rivescript.sorting
Provides sorting classes.
com.rivescript.util - package com.rivescript.util
Provides util classes.
concat(ConcatMode) - Method in class com.rivescript.Config.Builder
Sets the concat mode.
concat(ConcatMode) - Method in class com.rivescript.parser.ParserConfig.Builder
Sets the concat mode
ConcatMode - Enum in com.rivescript
Specifies the concat modes.
ConcurrentHashMapSessionManager - Class in com.rivescript.session
Implements the default in-memory SessionManager for RiveScript, based on a ConcurrentHashMap.
ConcurrentHashMapSessionManager() - Constructor for class com.rivescript.session.ConcurrentHashMapSessionManager
 
Config - Class in com.rivescript
User-configurable properties of the RiveScript interpreter.
Config() - Constructor for class com.rivescript.Config
 
Config.Builder - Class in com.rivescript
Builder for Config.
countWords(String, boolean) - Static method in class com.rivescript.util.StringUtils
Counts the number of words in a String.
currentUser() - Method in class com.rivescript.RiveScript
Returns the current user's ID.

D

DEEP_RECURSION_KEY - Static variable in class com.rivescript.RiveScript
 
DeepRecursionException - Exception in com.rivescript.exception
Thrown to indicate a deep recursion error.
DeepRecursionException() - Constructor for exception com.rivescript.exception.DeepRecursionException
Creates a new DeepRecursionException.
DeepRecursionException(String) - Constructor for exception com.rivescript.exception.DeepRecursionException
Creates a new DeepRecursionException with the given message.
DEFAULT_CANNOT_DIVIDE_BY_ZERO_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_CANNOT_MATH_VALUE_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_CANNOT_MATH_VARIABLE_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_CONCAT - Static variable in class com.rivescript.Config
The default concat mode.
DEFAULT_DEEP_RECURSION_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_DEFAULT_TOPIC_NOT_FOUND_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_DEPTH - Static variable in class com.rivescript.Config
The default recursion depth limit.
DEFAULT_FILE_EXTENSIONS - Static variable in class com.rivescript.RiveScript
 
DEFAULT_OBJECT_NOT_FOUND_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_REPLIES_NOT_SORTED_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_REPLY_NOT_FOUND_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_REPLY_NOT_MATCHED_MESSAGE - Static variable in class com.rivescript.RiveScript
 
DEFAULT_TOPIC_NOT_FOUND_KEY - Static variable in class com.rivescript.RiveScript
 
DEFAULT_UNICODE_PUNCTUATION_PATTERN - Static variable in class com.rivescript.Config
The default unicode punctuation pattern.
depth(int) - Method in class com.rivescript.Config.Builder
Sets the recursion depth limit.
dumpSorted() - Method in class com.rivescript.RiveScript
Dumps the trigger sort buffers to the standard output stream.
dumpTopics() - Method in class com.rivescript.RiveScript
Dumps the entire topic/trigger/reply structure to the standard output stream.

E

engineName - Variable in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
 
equals(Object) - Method in class com.rivescript.ast.Begin
 
equals(Object) - Method in class com.rivescript.ast.ObjectMacro
 
equals(Object) - Method in class com.rivescript.ast.Root
 
equals(Object) - Method in class com.rivescript.ast.Topic
 
equals(Object) - Method in class com.rivescript.ast.Trigger
 
equals(Object) - Method in class com.rivescript.Config
 
equals(Object) - Method in class com.rivescript.parser.ParserConfig
 
equals(Object) - Method in class com.rivescript.session.History
 
equals(Object) - Method in class com.rivescript.session.UserData
 
errorMessages(Map<String, String>) - Method in class com.rivescript.Config.Builder
Sets the custom error message overrides.

F

forceCase(boolean) - Method in class com.rivescript.Config.Builder
Sets whether forcing triggers to lowercase is enabled.
forceCase(boolean) - Method in class com.rivescript.parser.ParserConfig.Builder
Sets whether forcing triggers to lowercase is enabled.
freeze(String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
freeze(String) - Method in class com.rivescript.session.NoOpSessionManager
 
freeze(String) - Method in interface com.rivescript.session.SessionManager
Makes a snapshot of a user's variables.
freezeUservars(String) - Method in class com.rivescript.RiveScript
Makes a snapshot of a user's variables.
fromName(String) - Static method in enum com.rivescript.ConcatMode
Resolves the ConcatMode by the given name (ignoring case).
functionCodeFormat - Variable in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
 
functionNamePrefix - Variable in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
 

G

get(String, String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
get(String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
get(String, String) - Method in class com.rivescript.session.NoOpSessionManager
 
get(String) - Method in class com.rivescript.session.NoOpSessionManager
 
get(String, String) - Method in interface com.rivescript.session.SessionManager
Returns a user variable.
get(String) - Method in interface com.rivescript.session.SessionManager
Returns all variables for a user.
getAll() - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
getAll() - Method in class com.rivescript.session.NoOpSessionManager
 
getAll() - Method in interface com.rivescript.session.SessionManager
Returns all variables about all users.
getAlpha() - Method in class com.rivescript.sorting.SortTrack
 
getArray() - Method in class com.rivescript.ast.Begin
Returns the arrays.
getAtomic() - Method in class com.rivescript.sorting.SortTrack
 
getBegin() - Method in class com.rivescript.ast.Root
Returns the "begin block" (configuration) data.
getCode() - Method in class com.rivescript.ast.ObjectMacro
Returns the source code of this object.
getCode() - Method in enum com.rivescript.cmd.Shell.Color
 
getConcat() - Method in class com.rivescript.Config
Returns the concat mode.
getConcat() - Method in class com.rivescript.parser.ParserConfig
Returns the concat mode.
getConcat() - Method in class com.rivescript.RiveScript
Returns the concat mode.
getConcatChar() - Method in enum com.rivescript.ConcatMode
Returns the concat character.
getCondition() - Method in class com.rivescript.ast.Trigger
Returns the conditions of this trigger.
getDepth() - Method in class com.rivescript.Config
Returns the recursion depth limit.
getDepth() - Method in class com.rivescript.RiveScript
Returns the recursion depth limit.
getErrorMessages() - Method in class com.rivescript.Config
Returns the custom error message overrides.
getErrorMessages() - Method in class com.rivescript.RiveScript
Returns the error messages (unmodifiable).
getGlobal() - Method in class com.rivescript.ast.Begin
Returns the global variables.
getGlobal(String) - Method in class com.rivescript.RiveScript
Returns a global variable.
getHandlers() - Method in class com.rivescript.RiveScript
Returns the object macro language handlers (unmodifiable).
getHistory(String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
getHistory(String) - Method in class com.rivescript.session.NoOpSessionManager
 
getHistory(String) - Method in interface com.rivescript.session.SessionManager
Returns a user's history.
getHistory() - Method in class com.rivescript.session.UserData
 
getIncludes() - Method in class com.rivescript.ast.Topic
Returns the includes of this topic.
getInherits() - Method in class com.rivescript.ast.Topic
Returns the inherits of this topic.
getInput() - Method in class com.rivescript.session.History
 
getInput(int) - Method in class com.rivescript.session.History
 
getLanguage() - Method in class com.rivescript.ast.ObjectMacro
Returns the programming language of this object.
getLastMatch(String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
getLastMatch(String) - Method in class com.rivescript.session.NoOpSessionManager
 
getLastMatch(String) - Method in interface com.rivescript.session.SessionManager
Returns a user's last matched trigger.
getLastMatch() - Method in class com.rivescript.session.UserData
 
getName() - Method in class com.rivescript.ast.ObjectMacro
Returns the name of this object.
getNumber() - Method in class com.rivescript.sorting.SortTrack
 
getObjects() - Method in class com.rivescript.ast.Root
Returns the objects.
getOption() - Method in class com.rivescript.sorting.SortTrack
 
getPerson() - Method in class com.rivescript.ast.Begin
Retuns the person variables.
getPerson(String) - Method in class com.rivescript.RiveScript
Returns a person substitution pattern.
getPerson() - Method in class com.rivescript.sorting.SortBuffer
 
getPointer() - Method in class com.rivescript.sorting.SortedTriggerEntry
 
getPound() - Method in class com.rivescript.sorting.SortTrack
 
getPrevious() - Method in class com.rivescript.ast.Trigger
Returns the previous of this trigger.
getRedirect() - Method in class com.rivescript.ast.Trigger
Returns the redirect of this trigger.
getReply() - Method in class com.rivescript.ast.Trigger
Returns the replies of this trigger.
getReply() - Method in class com.rivescript.session.History
 
getReply(int) - Method in class com.rivescript.session.History
 
getSessionManager() - Method in class com.rivescript.Config
Returns the SessionManager for user variables.
getStar() - Method in class com.rivescript.sorting.SortTrack
 
getSub() - Method in class com.rivescript.ast.Begin
Returns the substitution variables.
getSub() - Method in class com.rivescript.sorting.SortBuffer
 
getSubroutines() - Method in class com.rivescript.RiveScript
Returns the Java object macros (unmodifiable).
getSubstitution(String) - Method in class com.rivescript.RiveScript
Returns a substitution pattern.
getThats(String) - Method in class com.rivescript.sorting.SortBuffer
 
getThats() - Method in class com.rivescript.sorting.SortBuffer
 
getTopic(String) - Method in class com.rivescript.ast.Root
Returns the topic with the given name.
getTopic(String) - Method in class com.rivescript.sorting.SortBuffer
 
getTopics() - Method in class com.rivescript.ast.Root
Returns the topics.
getTopics() - Method in class com.rivescript.RiveScript
Returns the topics.
getTopics() - Method in class com.rivescript.sorting.SortBuffer
 
getTrigger() - Method in class com.rivescript.ast.Trigger
Returns the trigger pattern of this trigger.
getTrigger() - Method in class com.rivescript.sorting.SortedTriggerEntry
 
getTriggers() - Method in class com.rivescript.ast.Topic
Returns the triggers of this topic.
getUnder() - Method in class com.rivescript.sorting.SortTrack
 
getUnicodePunctuation() - Method in class com.rivescript.Config
Returns the unicode punctuation pattern.
getUnicodePunctuation() - Method in class com.rivescript.RiveScript
Returns the unicode punctuation pattern.
getUservar(String, String) - Method in class com.rivescript.RiveScript
Returns a user variable.
getUservars(String) - Method in class com.rivescript.RiveScript
Returns all variables for a user.
getVar() - Method in class com.rivescript.ast.Begin
Returns the bot variables.
getVariable(String) - Method in class com.rivescript.RiveScript
Returns a bot variable.
getVariable(String) - Method in class com.rivescript.session.UserData
 
getVariables() - Method in class com.rivescript.RiveScript
Returns all bot variables.
getVariables() - Method in class com.rivescript.session.UserData
 
getVersion() - Static method in class com.rivescript.RiveScript
Returns the RiveScript library version, or null if it cannot be determined.
getWild() - Method in class com.rivescript.sorting.SortTrack
 
GroovyHandler - Class in com.rivescript.lang.groovy
Provides Groovy programming language support for object macros in RiveScript.
GroovyHandler() - Constructor for class com.rivescript.lang.groovy.GroovyHandler
Constructs a Groovy ObjectHandler.

H

hashCode() - Method in class com.rivescript.ast.Begin
 
hashCode() - Method in class com.rivescript.ast.ObjectMacro
 
hashCode() - Method in class com.rivescript.ast.Root
 
hashCode() - Method in class com.rivescript.ast.Topic
 
hashCode() - Method in class com.rivescript.ast.Trigger
 
hashCode() - Method in class com.rivescript.Config
 
hashCode() - Method in class com.rivescript.parser.ParserConfig
 
hashCode() - Method in class com.rivescript.session.History
 
hashCode() - Method in class com.rivescript.session.UserData
 
History - Class in com.rivescript.session
Container to keep track of recent input and reply history.
History() - Constructor for class com.rivescript.session.History
 
HISTORY_SIZE - Static variable in interface com.rivescript.session.SessionManager
The number of entries stored in the history.

I

init(RiveScript) - Method in class com.rivescript.cmd.Shell
Initializes the RiveScript instance.
init(String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
init(String) - Method in class com.rivescript.session.NoOpSessionManager
 
init(String) - Method in interface com.rivescript.session.SessionManager
Makes sure a username has a session (creates one if not).
isForceCase() - Method in class com.rivescript.Config
Returns whether forcing triggers to lowercase is enabled.
isForceCase() - Method in class com.rivescript.parser.ParserConfig
Returns whether forcing triggers to lowercase is enabled.
isForceCase() - Method in class com.rivescript.RiveScript
Returns whether forcing triggers to lowercase is enabled.
isStrict() - Method in class com.rivescript.Config
Returns whether strict syntax checking is enabled.
isStrict() - Method in class com.rivescript.parser.ParserConfig
Returns whether strict syntax checking is enabled.
isStrict() - Method in class com.rivescript.RiveScript
Returns whether strict syntax checking is enabled.
isThrowExceptions() - Method in class com.rivescript.Config
Returns whether exception throwing is enabled.
isThrowExceptions() - Method in class com.rivescript.RiveScript
Returns whether exception throwing is enabled.
isUtf8() - Method in class com.rivescript.Config
Returns whether UTF-8 mode is enabled for user messages and triggers.
isUtf8() - Method in class com.rivescript.parser.ParserConfig
Returns whether UTF-8 mode is enabled for user messages and triggers.
isUtf8() - Method in class com.rivescript.RiveScript
Returns whether UTF-8 mode is enabled for user messages and triggers.

J

JavaScriptHandler - Class in com.rivescript.lang.javascript
Provides JavaScript programming language support for object macros in RiveScript.
JavaScriptHandler() - Constructor for class com.rivescript.lang.javascript.JavaScriptHandler
Constructs a JavaScript ObjectHandler.
join(String[], String) - Static method in class com.rivescript.util.StringUtils
Joins a String array into a single String.
Jsr223ScriptingHandler - Class in com.rivescript.lang.jsr223
Provides JSR-223 Scripting support for object macros in RiveScript.
Jsr223ScriptingHandler(String, String) - Constructor for class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Constructs a JSR-223 Scripting ObjectHandler.
Jsr223ScriptingHandler(String, String, String) - Constructor for class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Constructs a JSR-223 Scripting ObjectHandler.
Jsr223ScriptingHandler(String, String, String, String) - Constructor for class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Constructs a JSR-223 Scripting ObjectHandler.

L

lastMatch(String) - Method in class com.rivescript.RiveScript
Returns a user's last matched trigger.
load(RiveScript, String, String[]) - Method in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Handler for when object code is read (loaded) by RiveScript.
load(RiveScript, String, String[]) - Method in class com.rivescript.lang.Perl
Handler for when object code is read (loaded) by RiveScript.
load(RiveScript, String, String[]) - Method in interface com.rivescript.macro.ObjectHandler
Handler for when object code is read (loaded) by RiveScript.
loadDirectory(File, String...) - Method in class com.rivescript.RiveScript
Loads multiple RiveScript documents from a directory on disk.
loadDirectory(String, String...) - Method in class com.rivescript.RiveScript
Loads multiple RiveScript documents from a directory on disk.
loadFile(File) - Method in class com.rivescript.RiveScript
Loads a single RiveScript document from disk.
loadFile(String) - Method in class com.rivescript.RiveScript
Loads a single RiveScript document from disk.

M

main(String[]) - Static method in class com.rivescript.cmd.Shell
 

N

newBuilder() - Static method in class com.rivescript.Config
Creates a new Config.Builder.
newBuilder() - Static method in class com.rivescript.parser.ParserConfig
Creates a new ParserConfig.Builder.
NoDefaultTopicException - Exception in com.rivescript.exception
Thrown to indicate no default topic exists.
NoDefaultTopicException() - Constructor for exception com.rivescript.exception.NoDefaultTopicException
Creates a new NoDefaultTopicException.
NoDefaultTopicException(String) - Constructor for exception com.rivescript.exception.NoDefaultTopicException
Creates a new NoDefaultTopicException with the given message.
NoOpSessionManager - Class in com.rivescript.session
A no operation SessionManager suitable for disabling session storage.
NoOpSessionManager() - Constructor for class com.rivescript.session.NoOpSessionManager
 

O

OBJECT_NOT_FOUND_KEY - Static variable in class com.rivescript.RiveScript
 
ObjectHandler - Interface in com.rivescript.macro
Interface for RiveScript object handlers.
ObjectMacro - Class in com.rivescript.ast
Represents a RiveScript Object Macro.
ObjectMacro() - Constructor for class com.rivescript.ast.ObjectMacro
 

P

parse(String, String[]) - Method in class com.rivescript.parser.Parser
Parses the RiveScript source code.
Parser - Class in com.rivescript.parser
Parser for RiveScript source code.
Parser() - Constructor for class com.rivescript.parser.Parser
Creates a new Parser with a default ParserConfig.
Parser(ParserConfig) - Constructor for class com.rivescript.parser.Parser
Creates a new Parser with the given ParserConfig.
ParserConfig - Class in com.rivescript.parser
User-configurable properties of the RiveScript Parser.
ParserConfig() - Constructor for class com.rivescript.parser.ParserConfig
 
ParserConfig.Builder - Class in com.rivescript.parser
Builder for ParserConfig.
ParserException - Exception in com.rivescript.parser
Thrown to indicate an error during parsing.
ParserException() - Constructor for exception com.rivescript.parser.ParserException
Creates a new ParserException.
ParserException(String) - Constructor for exception com.rivescript.parser.ParserException
Creates a new ParserException with the given message.
ParserException(String, Throwable) - Constructor for exception com.rivescript.parser.ParserException
Creates a new ParserException with the given message and cause.
ParserException(Throwable) - Constructor for exception com.rivescript.parser.ParserException
Creates a new ParserException with the given cause.
Perl - Class in com.rivescript.lang
Perl programming language support for RiveScript-Java.
Perl(String) - Constructor for class com.rivescript.lang.Perl
Creates a Perl ObjectHandler.
print(Shell.Color, String...) - Method in class com.rivescript.cmd.Shell
Prints colored text.

Q

quoteMetacharacters(String) - Static method in class com.rivescript.util.StringUtils
Escapes a String for use in a regular expression.

R

RE_ANY_TAG - Static variable in class com.rivescript.regexp.Regexp
 
RE_ARRAY - Static variable in class com.rivescript.regexp.Regexp
 
RE_BOT_VAR - Static variable in class com.rivescript.regexp.Regexp
 
RE_CALL - Static variable in class com.rivescript.regexp.Regexp
 
RE_CONDITION - Static variable in class com.rivescript.regexp.Regexp
 
RE_INHERITS - Static variable in class com.rivescript.regexp.Regexp
 
RE_INPUT - Static variable in class com.rivescript.regexp.Regexp
 
RE_META - Static variable in class com.rivescript.regexp.Regexp
 
RE_NASTIES - Static variable in class com.rivescript.regexp.Regexp
 
RE_OPTIONAL - Static variable in class com.rivescript.regexp.Regexp
 
RE_PLACEHOLDER - Static variable in class com.rivescript.regexp.Regexp
 
RE_RANDOM - Static variable in class com.rivescript.regexp.Regexp
 
RE_REDIRECT - Static variable in class com.rivescript.regexp.Regexp
 
RE_REPLY - Static variable in class com.rivescript.regexp.Regexp
 
RE_SET - Static variable in class com.rivescript.regexp.Regexp
 
RE_SYMBOLS - Static variable in class com.rivescript.regexp.Regexp
 
RE_TOPIC - Static variable in class com.rivescript.regexp.Regexp
 
RE_USER_VAR - Static variable in class com.rivescript.regexp.Regexp
 
RE_WEIGHT - Static variable in class com.rivescript.regexp.Regexp
 
RE_ZERO_WITH_STAR - Static variable in class com.rivescript.regexp.Regexp
 
Regexp - Class in com.rivescript.regexp
Miscellaneous compiled Pattern constants.
Regexp() - Constructor for class com.rivescript.regexp.Regexp
 
removeHandler(String) - Method in class com.rivescript.RiveScript
Removes an object macro language handler.
removeSubroutine(String) - Method in class com.rivescript.RiveScript
Removes a Java object macro.
REPLIES_NOT_SORTED_KEY - Static variable in class com.rivescript.RiveScript
 
RepliesNotSortedException - Exception in com.rivescript.exception
Thrown to indicate the replies are not sorted.
RepliesNotSortedException() - Constructor for exception com.rivescript.exception.RepliesNotSortedException
Creates a new RepliesNotSortedException.
RepliesNotSortedException(String) - Constructor for exception com.rivescript.exception.RepliesNotSortedException
Creates a new RepliesNotSortedException with the given message.
reply(String, String) - Method in class com.rivescript.RiveScript
Returns a reply from the bot for a user's message.
REPLY_NOT_FOUND_KEY - Static variable in class com.rivescript.RiveScript
 
REPLY_NOT_MATCHED_KEY - Static variable in class com.rivescript.RiveScript
 
ReplyNotFoundException - Exception in com.rivescript.exception
Thrown to indicate no reply was found.
ReplyNotFoundException() - Constructor for exception com.rivescript.exception.ReplyNotFoundException
Creates a new ReplyNotFoundException.
ReplyNotFoundException(String) - Constructor for exception com.rivescript.exception.ReplyNotFoundException
Creates a new ReplyNotFoundException with the given message.
ReplyNotMatchedException - Exception in com.rivescript.exception
Thrown to indicate no reply matched.
ReplyNotMatchedException() - Constructor for exception com.rivescript.exception.ReplyNotMatchedException
Creates a new ReplyNotMatchedException.
ReplyNotMatchedException(String) - Constructor for exception com.rivescript.exception.ReplyNotMatchedException
Creates a new ReplyNotMatchedException with the given message.
resolveFunctionCode(String, String[]) - Method in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Resolves the code to create the function.
resolveFunctionName(String) - Method in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
Resolves the function name.
RiveScript - Class in com.rivescript
A RiveScript interpreter written in Java.
RiveScript() - Constructor for class com.rivescript.RiveScript
Creates a new RiveScript interpreter.
RiveScript(Config) - Constructor for class com.rivescript.RiveScript
Creates a new RiveScript interpreter with the given Config.
RiveScriptException - Exception in com.rivescript
Thrown to indicate a RiveScript error.
RiveScriptException() - Constructor for exception com.rivescript.RiveScriptException
Creates a new RiveScriptException.
RiveScriptException(String) - Constructor for exception com.rivescript.RiveScriptException
Creates a new RiveScriptException with the given message.
RiveScriptException(String, Throwable) - Constructor for exception com.rivescript.RiveScriptException
Creates a new RiveScriptException with the given message and cause.
RiveScriptException(Throwable) - Constructor for exception com.rivescript.RiveScriptException
Creates a new RiveScriptException with the given cause.
Root - Class in com.rivescript.ast
Represents the root of the Abstract Syntax Tree (AST).
Root() - Constructor for class com.rivescript.ast.Root
Creates a new Abstract Syntax Tree (AST) containing an empty "random" topic.
RS_VERSION - Static variable in class com.rivescript.parser.Parser
The supported version of the RiveScript language.
RubyHandler - Class in com.rivescript.lang.ruby
Provides Ruby programming language support for object macros in RiveScript.
RubyHandler() - Constructor for class com.rivescript.lang.ruby.RubyHandler
Constructs a Ruby ObjectHandler.
run(String[]) - Method in class com.rivescript.cmd.Shell
Runs the RiveScript bot.
run(RiveScript) - Method in class com.rivescript.cmd.Shell
Runs the RiveScript bot.

S

scriptEngine - Variable in class com.rivescript.lang.jsr223.Jsr223ScriptingHandler
 
sessionManager(SessionManager) - Method in class com.rivescript.Config.Builder
Sets the SessionManager for user variables.
SessionManager - Interface in com.rivescript.session
Interface for RiveScript user user variables.
set(String, String, String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
set(String, Map<String, String>) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
set(String, String, String) - Method in class com.rivescript.session.NoOpSessionManager
 
set(String, Map<String, String>) - Method in class com.rivescript.session.NoOpSessionManager
 
set(String, String, String) - Method in interface com.rivescript.session.SessionManager
Sets a user's variable.
set(String, Map<String, String>) - Method in interface com.rivescript.session.SessionManager
Sets a user's variables.
setArray(Map<String, List<String>>) - Method in class com.rivescript.ast.Begin
Sets the arrays.
setBegin(Begin) - Method in class com.rivescript.ast.Root
Sets the "begin block" (configuration) data.
setCode(List<String>) - Method in class com.rivescript.ast.ObjectMacro
Sets the source code of this object.
setCondition(List<String>) - Method in class com.rivescript.ast.Trigger
Sets the conditions of this trigger.
setGlobal(Map<String, String>) - Method in class com.rivescript.ast.Begin
Sets the global variables.
setGlobal(String, String) - Method in class com.rivescript.RiveScript
Sets a global variable.
setHandler(String, ObjectHandler) - Method in class com.rivescript.RiveScript
Sets a custom language handler for RiveScript object macros.
setIncludes(Map<String, Boolean>) - Method in class com.rivescript.ast.Topic
Sets the includes of this topic.
setInherits(Map<String, Boolean>) - Method in class com.rivescript.ast.Topic
Sets the inherits of this topic.
setLanguage(String) - Method in class com.rivescript.ast.ObjectMacro
Sets the programming language of this object.
setLastMatch(String, String) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
setLastMatch(String, String) - Method in class com.rivescript.session.NoOpSessionManager
 
setLastMatch(String, String) - Method in interface com.rivescript.session.SessionManager
Sets a user's the last matched trigger.
setLastMatch(String) - Method in class com.rivescript.session.UserData
 
setName(String) - Method in class com.rivescript.ast.ObjectMacro
Sets the name of this object.
setObjects(List<ObjectMacro>) - Method in class com.rivescript.ast.Root
Sets the objects.
setPerson(Map<String, String>) - Method in class com.rivescript.ast.Begin
Sets the person variables.
setPerson(String, String) - Method in class com.rivescript.RiveScript
Sets a person substitution pattern.
setPerson(List<String>) - Method in class com.rivescript.sorting.SortBuffer
 
setPointer(Trigger) - Method in class com.rivescript.sorting.SortedTriggerEntry
 
setPrevious(String) - Method in class com.rivescript.ast.Trigger
Sets the previous of this trigger.
setRedirect(String) - Method in class com.rivescript.ast.Trigger
Sets the redirect of this trigger.
setReply(List<String>) - Method in class com.rivescript.ast.Trigger
Sets the replies of this trigger.
setSub(Map<String, String>) - Method in class com.rivescript.ast.Begin
Sets the substitution variables.
setSub(List<String>) - Method in class com.rivescript.sorting.SortBuffer
 
setSubroutine(String, Subroutine) - Method in class com.rivescript.RiveScript
Defines a Java object macro.
setSubstitution(String, String) - Method in class com.rivescript.RiveScript
Sets a substitution pattern.
setTopics(Map<String, Topic>) - Method in class com.rivescript.ast.Root
Sets the topics.
setTrigger(String) - Method in class com.rivescript.ast.Trigger
Sets the trigger pattern of this trigger.
setTrigger(String) - Method in class com.rivescript.sorting.SortedTriggerEntry
 
setTriggers(List<Trigger>) - Method in class com.rivescript.ast.Topic
Sets the triggers of this topic.
setUservar(String, String, String) - Method in class com.rivescript.RiveScript
Sets a user variable.
setUservars(String, Map<String, String>) - Method in class com.rivescript.RiveScript
Set a user's variables.
setVar(Map<String, String>) - Method in class com.rivescript.ast.Begin
Sets the bot variables.
setVariable(String, String) - Method in class com.rivescript.RiveScript
Sets a bot variable.
setVariable(String, String) - Method in class com.rivescript.session.UserData
 
Shell - Class in com.rivescript.cmd
Stand-alone RiveScript Interpreter.
Shell() - Constructor for class com.rivescript.cmd.Shell
 
Shell.Color - Enum in com.rivescript.cmd
The color names.
SortBuffer - Class in com.rivescript.sorting
Sort buffer data.
SortBuffer() - Constructor for class com.rivescript.sorting.SortBuffer
 
SortedTriggerEntry - Class in com.rivescript.sorting
Holds a sorted trigger and the pointer to that trigger's data
SortedTriggerEntry(String, Trigger) - Constructor for class com.rivescript.sorting.SortedTriggerEntry
 
sortReplies() - Method in class com.rivescript.RiveScript
Sorts the reply structures in memory for optimal matching.
SortTrack - Class in com.rivescript.sorting
Temporary categorization of triggers while sorting.
SortTrack() - Constructor for class com.rivescript.sorting.SortTrack
 
stream(String) - Method in class com.rivescript.RiveScript
Loads RiveScript source code from a text buffer, with line breaks after each line.
stream(String[]) - Method in class com.rivescript.RiveScript
Loads RiveScript source code from a String array, one line per item.
strict(boolean) - Method in class com.rivescript.Config.Builder
Sets whether strict syntax checking is enabled.
strict(boolean) - Method in class com.rivescript.parser.ParserConfig.Builder
Sets whether strict syntax checking is enabled.
StringUtils - Class in com.rivescript.util
Miscellaneous String utility methods.
StringUtils() - Constructor for class com.rivescript.util.StringUtils
 
stripNasties(String) - Static method in class com.rivescript.util.StringUtils
Strips special characters out of a String.
Subroutine - Interface in com.rivescript.macro
Interface for RiveScript object macros written in Java.

T

thaw(String, ThawAction) - Method in class com.rivescript.session.ConcurrentHashMapSessionManager
 
thaw(String, ThawAction) - Method in class com.rivescript.session.NoOpSessionManager
 
thaw(String, ThawAction) - Method in interface com.rivescript.session.SessionManager
Unfreezes a user's variables.
ThawAction - Enum in com.rivescript.session
Specifies options for thawing the user's variables.
thawUservars(String, ThawAction) - Method in class com.rivescript.RiveScript
Unfreezes a user's variables.
throwExceptions(boolean) - Method in class com.rivescript.Config.Builder
Sets whether exception throwing is enabled.
toBuilder() - Method in class com.rivescript.Config
Converts this Config instance to a Config.Builder.
toBuilder() - Method in class com.rivescript.parser.ParserConfig
Converts this ParserConfig instance to a ParserConfig.Builder.
Topic - Class in com.rivescript.ast
Represents a RiveScript zzTopic.
Topic() - Constructor for class com.rivescript.ast.Topic
 
toString() - Method in class com.rivescript.ast.Begin
 
toString() - Method in class com.rivescript.ast.ObjectMacro
 
toString() - Method in class com.rivescript.ast.Root
 
toString() - Method in class com.rivescript.ast.Topic
 
toString() - Method in class com.rivescript.ast.Trigger
 
toString() - Method in class com.rivescript.Config
 
toString() - Method in class com.rivescript.parser.ParserConfig
 
toString() - Method in class com.rivescript.session.History
 
toString() - Method in class com.rivescript.session.UserData
 
Trigger - Class in com.rivescript.ast
Represents a RiveScript ZzTrigger.
Trigger() - Constructor for class com.rivescript.ast.Trigger
 

U

UNDEFINED - Static variable in class com.rivescript.RiveScript
 
unicodePunctuation(String) - Method in class com.rivescript.Config.Builder
Sets the unicode punctuation pattern (only used when UTF-8 mode is enabled).
UserData - Class in com.rivescript.session
Container for user variables.
UserData() - Constructor for class com.rivescript.session.UserData
 
utf8(boolean) - Method in class com.rivescript.Config.Builder
Sets whether UTF-8 mode is enabled.
utf8() - Static method in class com.rivescript.Config.Builder
Creates a basic Config.Builder with UTF-8 mode enabled.
utf8() - Static method in class com.rivescript.Config
Creates a basic Config with UTF-8 mode enabled.
utf8(boolean) - Method in class com.rivescript.parser.ParserConfig.Builder
Sets whether UTF-8 mode is enabled.

V

valueOf(String) - Static method in enum com.rivescript.cmd.Shell.Color
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.rivescript.ConcatMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.rivescript.session.ThawAction
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.rivescript.cmd.Shell.Color
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.rivescript.ConcatMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.rivescript.session.ThawAction
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I J L M N O P Q R S T U V 
Skip navigation links
rivescript-core 0.10.0