Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AccessExpression - Class in team.unnamed.mocha.parser.ast
-
Property accessing expression implementation, access to a property on another expression result.
- AccessExpression(Expression, String) - Constructor for class team.unnamed.mocha.parser.ast.AccessExpression
- acos(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- ADD - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- addCast(Bytecode, CtClass, CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- addCastDoubleTo(Bytecode, CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- addCastFloatTo(Bytecode, CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- addCastIntTo(Bytecode, CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- addCastLongTo(Bytecode, CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- AMPAMP - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Double ampersand token (&&)
- AND - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- apply(double) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue.DoubleFunction1
- apply(double, double) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue.DoubleFunction2
- apply(double, double, double) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue.DoubleFunction3
- args() - Element in annotation interface team.unnamed.mocha.runtime.binding.BindExternalFunction
- arguments() - Method in class team.unnamed.mocha.parser.ast.CallExpression
-
Gets the list of arguments to pass to the function.
- ARITHMETICAL_NEGATION - Enum constant in enum class team.unnamed.mocha.parser.ast.UnaryExpression.Op
- array() - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
-
Gets the 'array' expression, the index is evaluated on this expression's result.
- array(Expression) - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
-
Sets the 'array' expression, the index is evaluated on this expression's result.
- ArrayAccessExpression - Class in team.unnamed.mocha.parser.ast
-
Array accessing expression implementation, access to a value in an array, by its index.
- ArrayAccessExpression(Expression, Expression) - Constructor for class team.unnamed.mocha.parser.ast.ArrayAccessExpression
- ArrayValue - Class in team.unnamed.mocha.runtime.value
- ARROW - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Arrow token (->)
- ARROW - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- as() - Element in annotation interface team.unnamed.mocha.runtime.binding.BindExternalFunction
- asin(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- ASSIGN - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- at() - Element in annotation interface team.unnamed.mocha.runtime.binding.BindExternalFunction
- atan(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- atan2(double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
B
- BANG - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
The bang or exclamation symbol (!)
- BANGEQ - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Bang-eq token (!=)
- BARBAR - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Double bar token (||)
- BinaryExpression - Class in team.unnamed.mocha.parser.ast
-
Expression implementation for binary expressions (expressions composed by two other expressions)
- BinaryExpression(BinaryExpression.Op, Expression, Expression) - Constructor for class team.unnamed.mocha.parser.ast.BinaryExpression
- BinaryExpression.Op - Enum Class in team.unnamed.mocha.parser.ast
- bind(Class<?>) - Method in interface team.unnamed.mocha.MochaEngine
-
Binds the given
clazzstatic fields and methods. - BindExternalFunction - Annotation Interface in team.unnamed.mocha.runtime.binding
- BindExternalFunction.Multiple - Annotation Interface in team.unnamed.mocha.runtime.binding
- Binding - Annotation Interface in team.unnamed.mocha.runtime.binding
-
Gives a name to a type (class, interface, enum), method or field to be used from Molang scripts.
- bindings() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- bindInstance(Class<? super B>, B, String, String...) - Method in interface team.unnamed.mocha.MochaEngine
-
Binds the given
instancenon-static fields and methods. - block() - Method in class team.unnamed.mocha.runtime.value.MutableObjectBinding
- blocked() - Method in class team.unnamed.mocha.runtime.value.MutableObjectBinding
- BREAK - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
The "break" keyword
- BREAK - Enum constant in enum class team.unnamed.mocha.parser.ast.StatementExpression.Op
-
The break statement type
- build() - Method in interface team.unnamed.mocha.runtime.Scope.Builder
- builder() - Static method in interface team.unnamed.mocha.runtime.Scope
C
- CallExpression - Class in team.unnamed.mocha.parser.ast
-
Call expression implementation, executes functions with certain arguments.
- CallExpression(Expression, List<Expression>) - Constructor for class team.unnamed.mocha.parser.ast.CallExpression
- CaseInsensitiveStringHashMap<V> - Class in team.unnamed.mocha.util
- CaseInsensitiveStringHashMap() - Constructor for class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- CaseInsensitiveStringHashMap(int) - Constructor for class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- CaseInsensitiveStringHashMap(int, float) - Constructor for class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- CaseInsensitiveStringHashMap(Map<String, ? extends V>) - Constructor for class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- clamp(double, double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- classPool() - Method in interface team.unnamed.mocha.MochaEngine
-
Returns the internal
ClassPoolused by the compiler. - classPool() - Method in class team.unnamed.mocha.runtime.MolangCompiler
- clone() - Method in class team.unnamed.mocha.lexer.Cursor
- close() - Method in interface team.unnamed.mocha.lexer.MolangLexer
-
Closes this lexer and the internal
Reader. - close() - Method in interface team.unnamed.mocha.parser.MolangParser
-
Closes this parser and the internal
MolangLexer. - COLON - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Colon symbol (:)
- column() - Method in class team.unnamed.mocha.lexer.Cursor
- COMMA - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Comma symbol (,)
- compile(Reader) - Method in interface team.unnamed.mocha.MochaEngine
-
Compiles the given code into a Molang function that takes no arguments.
- compile(Reader, Class<F>) - Method in interface team.unnamed.mocha.MochaEngine
-
Compiles the given code into a Molang function that can take arguments.
- compile(String) - Method in interface team.unnamed.mocha.MochaEngine
-
Compiles the given code into a Molang function that takes no arguments.
- compile(String, Class<F>) - Method in interface team.unnamed.mocha.MochaEngine
-
Compiles the given code into a Molang function that can take arguments.
- compile(List<Expression>, Class<T>) - Method in class team.unnamed.mocha.runtime.MolangCompiler
- compute(String, BiFunction<? super String, ? super V, ? extends V>) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- computeIfAbsent(String, Function<? super String, ? extends V>) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- computeIfPresent(String, BiFunction<? super String, ? super V, ? extends V>) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- condition() - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
-
Gets the expression condition.
- condition(Expression) - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
-
Sets the expression condition.
- CONDITIONAL - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- constant() - Method in class team.unnamed.mocha.runtime.binding.JavaFieldBinding
- constant() - Method in interface team.unnamed.mocha.runtime.value.ObjectProperty
-
Determines whether this property is constant and cannot be changed in runtime.
- containsKey(Object) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- CONTINUE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
The "continue" keyword
- CONTINUE - Enum constant in enum class team.unnamed.mocha.parser.ast.StatementExpression.Op
-
The continue statement type
- convert(Value, Class<?>) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- copy() - Method in interface team.unnamed.mocha.runtime.Scope
-
Creates a shallow copy of this scope.
- cos(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- create() - Static method in interface team.unnamed.mocha.MochaEngine
- create() - Static method in interface team.unnamed.mocha.runtime.Scope
- create(T) - Static method in interface team.unnamed.mocha.MochaEngine
- create(T, Consumer<Scope.Builder>) - Static method in interface team.unnamed.mocha.MochaEngine
- createChild() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- createChild(R) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- createStandard() - Static method in interface team.unnamed.mocha.MochaEngine
-
Creates a new, clean and empty
MochaEngineinstance with the standard, default bindings. - createStandard(T) - Static method in interface team.unnamed.mocha.MochaEngine
-
Creates a new, clean and empty
MochaEngineinstance with the standard, default bindings. - current() - Method in interface team.unnamed.mocha.lexer.MolangLexer
-
Returns the last emitted token (the last token value returned when calling
MolangLexer.next()) - current() - Method in interface team.unnamed.mocha.parser.MolangParser
-
Returns the last emitted expression (the last expression value returned when calling
MolangParser.next()) - cursor() - Method in interface team.unnamed.mocha.lexer.MolangLexer
-
Returns the cursor for this lexer, the cursor maintains track of the current line and column, it is used for error reporting.
- cursor() - Method in interface team.unnamed.mocha.parser.MolangParser
-
Returns the cursor for this parser, the cursor maintains track of the current line and column, it is used for error reporting.
- cursor() - Method in exception team.unnamed.mocha.parser.ParseException
- Cursor - Class in team.unnamed.mocha.lexer
-
Mutable class that tracks the position of characters when performing lexical analysis
- Cursor() - Constructor for class team.unnamed.mocha.lexer.Cursor
- Cursor(int, int) - Constructor for class team.unnamed.mocha.lexer.Cursor
D
- dieRoll(double, double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- dieRollInteger(double, double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- DIV - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- DOT - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
The dot symbol (.)
- DoubleExpression - Class in team.unnamed.mocha.parser.ast
-
Literal double expression implementation for Molang numerical values.
- DoubleExpression(double) - Constructor for class team.unnamed.mocha.parser.ast.DoubleExpression
E
- empty() - Static method in interface team.unnamed.mocha.runtime.value.Function.Arguments
- EMPTY - Static variable in class team.unnamed.mocha.runtime.ExpressionInterpreter.FunctionArguments
- end() - Method in class team.unnamed.mocha.lexer.Token
-
Gets the end index of this token.
- entity() - Method in interface team.unnamed.mocha.runtime.ExecutionContext
- entity() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- entity() - Method in class team.unnamed.mocha.runtime.MolangCompiler
- Entity - Annotation Interface in team.unnamed.mocha.runtime.binding
- entries() - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
- entrySet() - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- EOF - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
End-of-file token, means that the end was reached
- EQ - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Equal symbol (=)
- EQ - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- EQEQ - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Equal-equal token (==)
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
- equals(Object) - Method in class team.unnamed.mocha.runtime.value.ArrayValue
- equals(Object) - Method in class team.unnamed.mocha.runtime.value.NumberValue
- equals(Object) - Method in class team.unnamed.mocha.runtime.value.StringValue
- equals(Object) - Method in class team.unnamed.mocha.lexer.Cursor
- equals(Object) - Method in class team.unnamed.mocha.lexer.Token
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.AccessExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.CallExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.DoubleExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.ExecutionScopeExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.IdentifierExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.StringExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
- equals(Object) - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
- ERROR - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Error token, means that there was an error there
- eval() - Method in interface team.unnamed.mocha.runtime.value.Function.Argument
-
Evaluates the argument expression.
- eval(Reader) - Method in interface team.unnamed.mocha.MochaEngine
-
Parses and evaluates the given Molang source.
- eval(String) - Method in interface team.unnamed.mocha.MochaEngine
-
Parses and evaluates the given Molang source.
- eval(List<Expression>) - Method in interface team.unnamed.mocha.MochaEngine
-
Evaluates the given
expressions, these expressions are already parsed and are interpreted as fast as possible. - eval(Expression) - Method in interface team.unnamed.mocha.runtime.ExecutionContext
- eval(Expression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- evaluate() - Method in interface team.unnamed.mocha.runtime.MochaFunction
-
Evaluates this function.
- evaluate(ExecutionContext<T>) - Method in interface team.unnamed.mocha.runtime.value.Function
-
Executes this function.
- evaluate(ExecutionContext<T>, Function.Arguments) - Method in class team.unnamed.mocha.runtime.binding.JavaFunction
- evaluate(ExecutionContext<T>, Function.Arguments) - Method in interface team.unnamed.mocha.runtime.value.Function
-
Executes this function with the given arguments.
- ExecutionContext<T> - Interface in team.unnamed.mocha.runtime
- ExecutionScopeExpression - Class in team.unnamed.mocha.parser.ast
-
Execution scope expression implementation.
- ExecutionScopeExpression(List<Expression>) - Constructor for class team.unnamed.mocha.parser.ast.ExecutionScopeExpression
- expression() - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
-
Gets the operated expression.
- expression() - Method in interface team.unnamed.mocha.runtime.value.Function.Argument
-
Gets the argument expression.
- expression(Expression) - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
-
Sets the operated expression.
- Expression - Interface in team.unnamed.mocha.parser.ast
-
The expression interface.
- ExpressionInterpreter<T> - Class in team.unnamed.mocha.runtime
- ExpressionInterpreter(T, Scope) - Constructor for class team.unnamed.mocha.runtime.ExpressionInterpreter
- ExpressionInterpreter.FunctionArguments - Class in team.unnamed.mocha.runtime
- expressions() - Method in class team.unnamed.mocha.parser.ast.ExecutionScopeExpression
-
Returns the expressions inside this execution scope, never null
- ExpressionVisitor<R> - Interface in team.unnamed.mocha.parser.ast
-
An
Expressionvisitor.
F
- FALSE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
'False' literal boolean token
- falseExpression() - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
-
Gets the expression that should be used when condition is evaluated as a falsy value.
- falseExpression(Expression) - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
-
Sets the expression that should be used when condition is evaluated as a falsy value.
- field() - Method in class team.unnamed.mocha.runtime.binding.JavaFieldBinding
- flag() - Method in interface team.unnamed.mocha.runtime.ExecutionContext
- flag() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- flag(Object) - Method in interface team.unnamed.mocha.runtime.ExecutionContext
- flag(Object) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- FLOAT - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Float literal token, has a string value of its content, which can be parsed to a floating-point number
- function() - Method in class team.unnamed.mocha.parser.ast.CallExpression
-
Gets the function expression.
- function(Expression) - Method in class team.unnamed.mocha.parser.ast.CallExpression
-
Sets the function expression.
- Function<T> - Interface in team.unnamed.mocha.runtime.value
-
Represents a Molang function.
- Function.Argument - Interface in team.unnamed.mocha.runtime.value
-
Represents a
Functionargument. - Function.Arguments - Interface in team.unnamed.mocha.runtime.value
-
Represents a collection of
FunctionFunction.Arguments.
G
- get() - Method in class team.unnamed.mocha.runtime.binding.JavaFieldBinding
- get() - Method in interface team.unnamed.mocha.runtime.binding.Lazy
- get(String) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
-
Gets the value of the specified property, ignoring its casing.
- get(Object) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- get(Value) - Method in class team.unnamed.mocha.runtime.value.ArrayValue
- getAsBoolean() - Method in interface team.unnamed.mocha.runtime.value.Value
- getAsNumber() - Method in interface team.unnamed.mocha.runtime.value.Value
- getAsString() - Method in interface team.unnamed.mocha.runtime.value.Value
- getClassUnchecked(ClassPool, Class<?>) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- getField(String) - Method in class team.unnamed.mocha.runtime.binding.JavaObjectBinding
- getNullValueForType(Class<?>) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- getOrDefault(Object, V) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- getProperty(String) - Method in class team.unnamed.mocha.runtime.binding.JavaObjectBinding
- getProperty(String) - Method in class team.unnamed.mocha.runtime.standard.MochaMath
- getProperty(String) - Method in class team.unnamed.mocha.runtime.value.MutableObjectBinding
- getProperty(String) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
-
Returns the property for the given name ignoring its case.
- GT - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Greater-than token (>)
- GT - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- GTE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Greater-than-or-equal token (>=)
- GTE - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
H
- handleParseExceptions(Consumer<ParseException>) - Method in interface team.unnamed.mocha.MochaEngine
-
Sets the
ParseExceptionhandler. - HAS_VALUE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind.Tag
-
A token kind with HAS_VALUE tag will have a variable value, for example, double or string literal tokens have variable values, but they are still parsed with the same token kind.
- hashCode() - Method in class team.unnamed.mocha.lexer.Cursor
- hashCode() - Method in class team.unnamed.mocha.lexer.Token
- hashCode() - Method in class team.unnamed.mocha.parser.ast.AccessExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.CallExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.DoubleExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.ExecutionScopeExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.IdentifierExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.StringExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
- hashCode() - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
- hashCode() - Method in class team.unnamed.mocha.runtime.value.ArrayValue
- hashCode() - Method in class team.unnamed.mocha.runtime.value.NumberValue
- hashCode() - Method in class team.unnamed.mocha.runtime.value.StringValue
- hasTag(TokenKind.Tag) - Method in enum class team.unnamed.mocha.lexer.TokenKind
-
Determines if this token kind has a certain tag.
- hermiteBlend(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
I
- IDENTIFIER - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Identifier token, has a string value of the identifier name
- IdentifierExpression - Class in team.unnamed.mocha.parser.ast
-
Identifier expression implementation for Molang.
- IdentifierExpression(String) - Constructor for class team.unnamed.mocha.parser.ast.IdentifierExpression
- index() - Method in class team.unnamed.mocha.lexer.Cursor
- index() - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
-
Gets the 'index' expression, the index is evaluated on this expression's result.
- index(Expression) - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
-
Sets the 'index' expression, the index is evaluated on this expression's result.
- IsConstantExpression - Class in team.unnamed.mocha.runtime
-
A
ExpressionVisitorthat determines whether an expression is constant or not. - isPrimitiveOrWrapper(CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
- isString() - Method in interface team.unnamed.mocha.runtime.value.Value
- isWrapper(CtClass) - Static method in class team.unnamed.mocha.runtime.JavaTypes
J
- JavaFieldBinding - Class in team.unnamed.mocha.runtime.binding
- JavaFunction<T> - Class in team.unnamed.mocha.runtime.binding
- JavaObjectBinding - Class in team.unnamed.mocha.runtime.binding
- JavaTypes - Class in team.unnamed.mocha.runtime
- JavaValue - Class in team.unnamed.mocha.runtime.value
- JavaValue(Object) - Constructor for class team.unnamed.mocha.runtime.value.JavaValue
K
- keySet() - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- kind() - Method in class team.unnamed.mocha.lexer.Token
-
Gets the token kind.
L
- Lazy<T> - Interface in team.unnamed.mocha.runtime.binding
- LBRACE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Left-brace symbol "{"
- LBRACKET - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Left-bracket token "["
- left() - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
-
Gets the left-hand expression for this binary expression.
- left(Expression) - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
-
Sets the left-hand expression for this binary expression.
- length() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter.FunctionArguments
- length() - Method in interface team.unnamed.mocha.runtime.value.Function.Arguments
-
Gets the amount of arguments.
- lerp(double, double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- lerpRotate(double, double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- lexer() - Method in interface team.unnamed.mocha.parser.MolangParser
-
Returns the internal lexer being used.
- lexer(Reader) - Static method in interface team.unnamed.mocha.lexer.MolangLexer
-
Creates a new lexer that will read the characters from the given reader.
- lexer(String) - Static method in interface team.unnamed.mocha.lexer.MolangLexer
-
Creates a new lexer that will read the characters from the given string.
- line() - Method in class team.unnamed.mocha.lexer.Cursor
- LOGICAL_NEGATION - Enum constant in enum class team.unnamed.mocha.parser.ast.UnaryExpression.Op
- LPAREN - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Left-parenthesis symbol "("
- LT - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Less-than token (<)
- LT - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- LTE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Less-than-or-equal token (<=)
- LTE - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
M
- merge(String, V, BiFunction<? super V, ? super V, ? extends V>) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- method() - Method in class team.unnamed.mocha.runtime.binding.JavaFunction
- minAngle(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- MochaCompiledFunction - Interface in team.unnamed.mocha.runtime.compiled
-
Marker interface for Molang compiled functions.
- MochaEngine<T> - Interface in team.unnamed.mocha
-
The engine's entry class.
- MochaFunction - Interface in team.unnamed.mocha.runtime
-
A
MochaCompiledFunctionthat can be evaluated without arguments. - MochaMath - Class in team.unnamed.mocha.runtime.standard
-
Math function bindings inside an object binding, commonly named 'math'
- MochaMath() - Constructor for class team.unnamed.mocha.runtime.standard.MochaMath
- mod(double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- MolangCompiler - Class in team.unnamed.mocha.runtime
- MolangCompiler(Object, ClassLoader, Scope) - Constructor for class team.unnamed.mocha.runtime.MolangCompiler
- MolangLexer - Interface in team.unnamed.mocha.lexer
-
Lexical analyzer for the Molang language.
- MolangParser - Interface in team.unnamed.mocha.parser
-
Parser for the Molang language.
- MUL - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- MutableObjectBinding - Class in team.unnamed.mocha.runtime.value
-
Represents an object-like binding, these objects can have properties (or fields) that can be read and sometimes written
- MutableObjectBinding() - Constructor for class team.unnamed.mocha.runtime.value.MutableObjectBinding
N
- name() - Method in class team.unnamed.mocha.parser.ast.IdentifierExpression
-
Gets the identifier name.
- name() - Element in annotation interface team.unnamed.mocha.runtime.binding.BindExternalFunction
- Named - Annotation Interface in team.unnamed.mocha.runtime.compiled
- names() - Method in class team.unnamed.mocha.runtime.binding.JavaObjectBinding
- NEQ - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- next() - Method in interface team.unnamed.mocha.lexer.MolangLexer
-
Reads the internal reader until it gets a token and then returns it.
- next() - Method in interface team.unnamed.mocha.parser.MolangParser
-
Parses the next expression.
- next() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter.FunctionArguments
- next() - Method in interface team.unnamed.mocha.runtime.value.Function.Arguments
-
Gets the next argument.
- nil() - Static method in interface team.unnamed.mocha.runtime.value.Value
- nop() - Static method in interface team.unnamed.mocha.runtime.MochaFunction
- normalize(double) - Static method in class team.unnamed.mocha.runtime.value.NumberValue
- NULL_COALESCE - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- NumberValue - Class in team.unnamed.mocha.runtime.value
O
- object() - Method in class team.unnamed.mocha.parser.ast.AccessExpression
-
Gets the "object" expression, the property is evaluated on this expression's result.
- object() - Method in class team.unnamed.mocha.runtime.binding.JavaFunction
- object(Expression) - Method in class team.unnamed.mocha.parser.ast.AccessExpression
-
Sets the "object" expression, the property is evaluated on this expression's result.
- ObjectProperty - Interface in team.unnamed.mocha.runtime.value
-
Represents a
ObjectValueproperty. - ObjectValue - Interface in team.unnamed.mocha.runtime.value
- ObjectValue.DoubleFunction1 - Interface in team.unnamed.mocha.runtime.value
- ObjectValue.DoubleFunction2 - Interface in team.unnamed.mocha.runtime.value
- ObjectValue.DoubleFunction3 - Interface in team.unnamed.mocha.runtime.value
- of(boolean) - Static method in interface team.unnamed.mocha.runtime.value.Value
- of(double) - Static method in class team.unnamed.mocha.runtime.value.NumberValue
- of(double) - Static method in interface team.unnamed.mocha.runtime.value.Value
- of(Class<T>, T, ObjectValue) - Static method in class team.unnamed.mocha.runtime.binding.JavaObjectBinding
- of(String) - Static method in class team.unnamed.mocha.runtime.value.StringValue
- of(Value...) - Static method in class team.unnamed.mocha.runtime.value.ArrayValue
- of(Object) - Static method in interface team.unnamed.mocha.runtime.value.Value
- of(String) - Static method in interface team.unnamed.mocha.runtime.value.Value
- ONE - Static variable in class team.unnamed.mocha.parser.ast.DoubleExpression
- op() - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
-
Gets the binary expression type/operation.
- op() - Method in class team.unnamed.mocha.parser.ast.StatementExpression
-
Gets the operation/type of this statement.
- op() - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
-
Gets the unary expression operation.
- OR - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
P
- parse(Reader) - Method in interface team.unnamed.mocha.MochaEngine
-
Parses the data from the given
readerto aListofExpressionNote that this method won't close the givenreader - parse(String) - Method in interface team.unnamed.mocha.MochaEngine
-
Parses the given
stringto a list ofExpression - parseAll() - Method in interface team.unnamed.mocha.parser.MolangParser
-
Parses all the tokens until it finds a
TokenKind.EOF. - parseAll(Reader) - Static method in interface team.unnamed.mocha.parser.MolangParser
-
Parses all the expressions from the given reader.
- parseAll(String) - Static method in interface team.unnamed.mocha.parser.MolangParser
-
Parses the provided string.
- ParseException - Exception in team.unnamed.mocha.parser
-
Exception that can be thrown during the parsing phase
- ParseException(String, Throwable, Cursor) - Constructor for exception team.unnamed.mocha.parser.ParseException
- ParseException(String, Cursor) - Constructor for exception team.unnamed.mocha.parser.ParseException
- ParseException(Throwable, Cursor) - Constructor for exception team.unnamed.mocha.parser.ParseException
- ParseException(Cursor) - Constructor for exception team.unnamed.mocha.parser.ParseException
- parser(Reader) - Static method in interface team.unnamed.mocha.parser.MolangParser
-
Creates a new parser that will read the tokens from the given reader.
- parser(String) - Static method in interface team.unnamed.mocha.parser.MolangParser
-
Creates a new parser that will read the tokens from the given string.
- parser(MolangLexer) - Static method in interface team.unnamed.mocha.parser.MolangParser
-
Creates a new parser that will read the tokens from the given lexer.
- PI - Static variable in class team.unnamed.mocha.runtime.standard.MochaMath
- PLUS - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Plus symbol (+)
- popReturnValue() - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- postCompile(Consumer<byte[]>) - Method in interface team.unnamed.mocha.MochaEngine
-
Sets the post-compile function, which is called after a script is compiled to a new class, and before it is loaded.
- postCompile(Consumer<byte[]>) - Method in class team.unnamed.mocha.runtime.MolangCompiler
- precedence() - Method in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
- prepareEval(Reader) - Method in interface team.unnamed.mocha.MochaEngine
-
Parses the data from the given
readerand returns a cached, interpretableMochaFunction. - prepareEval(String) - Method in interface team.unnamed.mocha.MochaEngine
-
Parses the given
stringand returns a cached, interpretableMochaFunction. - property() - Method in class team.unnamed.mocha.parser.ast.AccessExpression
-
Gets the accessed property name.
- property(Value, boolean) - Static method in interface team.unnamed.mocha.runtime.value.ObjectProperty
-
Creates a new
ObjectPropertywith the givenValueand constant flag. - pure() - Element in annotation interface team.unnamed.mocha.runtime.binding.BindExternalFunction
-
Determines if this function is pure or not.
- pure() - Element in annotation interface team.unnamed.mocha.runtime.binding.Binding
-
(For methods only) Determines if this method is pure or not.
- pure() - Method in class team.unnamed.mocha.runtime.binding.JavaFunction
- pure() - Method in interface team.unnamed.mocha.runtime.value.Function
-
Determines if this function is pure or not.
- push(int) - Method in class team.unnamed.mocha.lexer.Cursor
- put(String, V) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- putAll(Map<? extends String, ? extends V>) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- putIfAbsent(String, V) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
Q
- QUES - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Question symbol (?)
- QUESQUES - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Question-question token (??)
R
- random(double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- randomInteger(double, double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- RBRACE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Right-brace symbol "}"
- RBRACKET - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Right-bracket "]
- readOnly() - Method in interface team.unnamed.mocha.runtime.Scope
- readOnly(boolean) - Method in interface team.unnamed.mocha.runtime.Scope
- remove(Object) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- remove(Object, Object) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- replace(String, V) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- replace(String, V, V) - Method in class team.unnamed.mocha.util.CaseInsensitiveStringHashMap
- RETURN - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
The "return" keyword
- RETURN - Enum constant in enum class team.unnamed.mocha.parser.ast.UnaryExpression.Op
- right() - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
-
Gets the right-hand expression for this binary expression.
- right(Expression) - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
-
Sets the right-hand expression for this binary expression.
- RPAREN - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Right-parenthesis symbol ")"
S
- scope() - Method in interface team.unnamed.mocha.MochaEngine
-
Returns the bindings for this Molang engine instance.
- Scope - Interface in team.unnamed.mocha.runtime
-
Represents a scope, which is just a virtual object that contains bindings (properties) to values.
- Scope.Builder - Interface in team.unnamed.mocha.runtime
- SEMICOLON - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Semicolon symbol (;)
- set(String, Value) - Method in interface team.unnamed.mocha.runtime.Scope.Builder
- set(String, Value) - Method in class team.unnamed.mocha.runtime.binding.JavaObjectBinding
- set(String, Value) - Method in class team.unnamed.mocha.runtime.value.MutableObjectBinding
-
Sets the property with the given
nameto the specifiedvalue, may not be supported - set(String, Value) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
- setAllFrom(MutableObjectBinding) - Method in class team.unnamed.mocha.runtime.value.MutableObjectBinding
- setFunction(String, ObjectValue.DoubleFunction1) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
- setFunction(String, ObjectValue.DoubleFunction2) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
- setFunction(String, ObjectValue.DoubleFunction3) - Method in interface team.unnamed.mocha.runtime.value.ObjectValue
- sin(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- skipChecking() - Element in annotation interface team.unnamed.mocha.runtime.binding.Binding
-
Returns whether this binding should be skipped from the binding checking/normalizing process.
- SLASH - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Slash symbol (/)
- STAR - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Star symbol (*)
- start() - Method in class team.unnamed.mocha.lexer.Token
-
Gets the start index of this token.
- StatementExpression - Class in team.unnamed.mocha.parser.ast
-
Statement expression implementation.
- StatementExpression(StatementExpression.Op) - Constructor for class team.unnamed.mocha.parser.ast.StatementExpression
- StatementExpression.Op - Enum Class in team.unnamed.mocha.parser.ast
-
Enum containing all the possible operations/types of statement expressions.
- STRING - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
String literal token, has a string value of its content
- StringExpression - Class in team.unnamed.mocha.parser.ast
-
String literal expression implementation for Molang.
- StringExpression(String) - Constructor for class team.unnamed.mocha.parser.ast.StringExpression
- StringValue - Class in team.unnamed.mocha.runtime.value
- SUB - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
Hyphen/sub symbol (-)
- SUB - Enum constant in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
T
- team.unnamed.mocha - package team.unnamed.mocha
- team.unnamed.mocha.lexer - package team.unnamed.mocha.lexer
-
Package containing classes related to lexicographical analysis of Molang code.
- team.unnamed.mocha.parser - package team.unnamed.mocha.parser
-
Package containing classes related to parsing of Molang code.
- team.unnamed.mocha.parser.ast - package team.unnamed.mocha.parser.ast
-
Package containing classes for Molang abstract syntax trees.
- team.unnamed.mocha.runtime - package team.unnamed.mocha.runtime
- team.unnamed.mocha.runtime.binding - package team.unnamed.mocha.runtime.binding
- team.unnamed.mocha.runtime.compiled - package team.unnamed.mocha.runtime.compiled
- team.unnamed.mocha.runtime.standard - package team.unnamed.mocha.runtime.standard
- team.unnamed.mocha.runtime.value - package team.unnamed.mocha.runtime.value
- team.unnamed.mocha.util - package team.unnamed.mocha.util
- TernaryConditionalExpression - Class in team.unnamed.mocha.parser.ast
-
Ternary conditional expression implementation, similar to "if {...} else {...}" expressions in other languages.
- TernaryConditionalExpression(Expression, Expression, Expression) - Constructor for class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
- test(Expression) - Static method in class team.unnamed.mocha.runtime.IsConstantExpression
- test(Expression, Scope) - Static method in class team.unnamed.mocha.runtime.IsConstantExpression
- Token - Class in team.unnamed.mocha.lexer
-
Class representing a Molang token.
- Token(TokenKind, String, int, int) - Constructor for class team.unnamed.mocha.lexer.Token
- tokenizeAll() - Method in interface team.unnamed.mocha.lexer.MolangLexer
-
Reads all the tokens until it finds a
TokenKind.EOF. - tokenizeAll(Reader) - Static method in interface team.unnamed.mocha.lexer.MolangLexer
-
Tokenizes all the data from the given reader.
- tokenizeAll(String) - Static method in interface team.unnamed.mocha.lexer.MolangLexer
-
Tokenizes the provided string.
- TokenKind - Enum Class in team.unnamed.mocha.lexer
-
An enum of token kinds.
- TokenKind.Tag - Enum Class in team.unnamed.mocha.lexer
-
An enum of tags for token kinds.
- toString() - Method in class team.unnamed.mocha.lexer.Cursor
- toString() - Method in class team.unnamed.mocha.lexer.Token
- toString() - Method in class team.unnamed.mocha.parser.ast.AccessExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.CallExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.DoubleExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.ExecutionScopeExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.IdentifierExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.StringExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
- toString() - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
- toString() - Method in class team.unnamed.mocha.runtime.value.ArrayValue
- toString() - Method in class team.unnamed.mocha.runtime.value.NumberValue
- toString() - Method in class team.unnamed.mocha.runtime.value.StringValue
- TRUE - Enum constant in enum class team.unnamed.mocha.lexer.TokenKind
-
'True' literal boolean token
- trueExpression() - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
-
Gets the expression that should be used when condition is evaluated as a truthy value.
- trueExpression(Expression) - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
-
Sets the expression that should be used when condition is evaluated as a truthy value.
- trunc(double) - Static method in class team.unnamed.mocha.runtime.standard.MochaMath
- TypeCastException - Exception in team.unnamed.mocha.runtime
-
Thrown to indicate that the code has attempted to cast a type to another type, and they were not compatible.
- TypeCastException() - Constructor for exception team.unnamed.mocha.runtime.TypeCastException
- TypeCastException(String) - Constructor for exception team.unnamed.mocha.runtime.TypeCastException
U
- UnaryExpression - Class in team.unnamed.mocha.parser.ast
-
Unary expression implementation, performs a single operation to a single expression, like logical negation, arithmetical negation, or "return expr;".
- UnaryExpression(UnaryExpression.Op, Expression) - Constructor for class team.unnamed.mocha.parser.ast.UnaryExpression
- UnaryExpression.Op - Enum Class in team.unnamed.mocha.parser.ast
V
- value() - Method in class team.unnamed.mocha.lexer.Token
-
Gets the token value.
- value() - Method in class team.unnamed.mocha.parser.ast.DoubleExpression
-
Gets the double expression value.
- value() - Method in class team.unnamed.mocha.parser.ast.StringExpression
-
Gets the string value for this expression.
- value() - Element in annotation interface team.unnamed.mocha.runtime.binding.BindExternalFunction.Multiple
- value() - Element in annotation interface team.unnamed.mocha.runtime.binding.Binding
-
Returns the names for this binding.
- value() - Element in annotation interface team.unnamed.mocha.runtime.compiled.Named
- value() - Method in class team.unnamed.mocha.runtime.value.JavaValue
- value() - Method in class team.unnamed.mocha.runtime.value.NumberValue
- value() - Method in interface team.unnamed.mocha.runtime.value.ObjectProperty
-
Returns the value of this property.
- value() - Method in class team.unnamed.mocha.runtime.value.StringValue
- Value - Interface in team.unnamed.mocha.runtime.value
- valueOf(String) - Static method in enum class team.unnamed.mocha.lexer.TokenKind.Tag
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class team.unnamed.mocha.lexer.TokenKind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class team.unnamed.mocha.parser.ast.StatementExpression.Op
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class team.unnamed.mocha.parser.ast.UnaryExpression.Op
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class team.unnamed.mocha.lexer.TokenKind.Tag
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class team.unnamed.mocha.lexer.TokenKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class team.unnamed.mocha.parser.ast.BinaryExpression.Op
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class team.unnamed.mocha.parser.ast.StatementExpression.Op
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class team.unnamed.mocha.parser.ast.UnaryExpression.Op
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class team.unnamed.mocha.runtime.value.ArrayValue
- visit(Expression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for the given unknown expression.
- visit(Expression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visit(Expression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.AccessExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.ArrayAccessExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.BinaryExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.CallExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.DoubleExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.ExecutionScopeExpression
- visit(ExpressionVisitor<R>) - Method in interface team.unnamed.mocha.parser.ast.Expression
-
Visits this expression with the given visitor.
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.IdentifierExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.StatementExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.StringExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.TernaryConditionalExpression
- visit(ExpressionVisitor<R>) - Method in class team.unnamed.mocha.parser.ast.UnaryExpression
- visitAccess(AccessExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for access expression.
- visitAccess(AccessExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitAccess(AccessExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitArrayAccess(ArrayAccessExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for array access expression.
- visitArrayAccess(ArrayAccessExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitArrayAccess(ArrayAccessExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitBinary(BinaryExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for binary expression.
- visitBinary(BinaryExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitBinary(BinaryExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitCall(CallExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for call expression.
- visitCall(CallExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitCall(CallExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitDouble(DoubleExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for double expression.
- visitDouble(DoubleExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitDouble(DoubleExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitExecutionScope(ExecutionScopeExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for execution scope expression.
- visitExecutionScope(ExecutionScopeExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitExecutionScope(ExecutionScopeExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitIdentifier(IdentifierExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for identifier expression.
- visitIdentifier(IdentifierExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitIdentifier(IdentifierExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitStatement(StatementExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for statement expression.
- visitStatement(StatementExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitStatement(StatementExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitString(StringExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for string expression.
- visitString(StringExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitString(StringExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitTernaryConditional(TernaryConditionalExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for ternary conditional expression.
- visitTernaryConditional(TernaryConditionalExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitTernaryConditional(TernaryConditionalExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
- visitUnary(UnaryExpression) - Method in interface team.unnamed.mocha.parser.ast.ExpressionVisitor
-
Evaluate for unary expression.
- visitUnary(UnaryExpression) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
- visitUnary(UnaryExpression) - Method in class team.unnamed.mocha.runtime.IsConstantExpression
W
- warnOnReflectiveFunctionUsage(boolean) - Method in interface team.unnamed.mocha.MochaEngine
-
Sets the boolean value for the "warn on reflective function usage" option.
- warnOnReflectiveFunctionUsage(boolean) - Method in class team.unnamed.mocha.runtime.ExpressionInterpreter
Z
- zero() - Static method in class team.unnamed.mocha.runtime.value.NumberValue
- ZERO - Static variable in class team.unnamed.mocha.parser.ast.DoubleExpression
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form