| Package | Description |
|---|---|
| org.jsimpledb.parse |
JSimpleDB parsing related classes.
|
| org.jsimpledb.parse.expr |
Classes for parsing Java expressions with JSimpleDB-specific extensions.
|
| org.jsimpledb.parse.func |
Function used in a ParseSession, including built-ins. |
| Modifier and Type | Method and Description |
|---|---|
Parser<? extends Node> |
ParseSession.getIdentifierParser()
Get the current standalone identifier parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ParseSession.setIdentifierParser(Parser<? extends Node> identifierParser)
Set the standalone identifier parser.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoundMethodReferenceNode
Node representing a bound method reference like "foobar"::indexOf. |
class |
CastNode
A parsed cast expression.
|
class |
ClassNode
|
class |
ConstNode
|
class |
ConstructorInvokeNode
Node that invokes a Java method when evaluated. |
class |
EmptyArrayNode
Node representing an "empty" array instantiation expression, i.e., with dimensions but no literal values.
|
class |
LambdaNode
Node representing a lambda function. |
static class |
LambdaNode.Param |
class |
LiteralArrayNode
Node representing a literal array instantiation expression, i.e., with curly braces initial values.
|
class |
LiteralNode
A parsed literal value.
|
class |
MethodInvokeNode
Node that invokes a Java method when evaluated. |
class |
MethodReferenceNode
Node representing a method reference. |
class |
TypeInferringNode
Support superclass for
Nodes that perform type inferrence and therefore require a target type
in order to be completely parsed. |
class |
UnboundMethodReferenceNode
|
class |
VarNode
Node representing a parsed ParseSession variable. |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
LogicalOrParser.createNode(Op op,
Node lhNode,
Node rhNode) |
protected Node |
LogicalAndParser.createNode(Op op,
Node lhNode,
Node rhNode) |
protected Node |
BinaryExprParser.createNode(Op op,
Node lhs,
Node rhs) |
protected Node |
AssignmentExprParser.createNode(Op op,
Node lhs,
Node rhs) |
Node |
UnaryExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
LiteralExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
InstanceofParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
ExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
ConditionalParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
CastExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
BinaryExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
BaseExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
Node |
AtomExprParser.parse(ParseSession session,
ParseContext ctx,
boolean complete) |
<T> Node |
UnboundMethodReferenceNode.resolve(ParseSession session,
TypeToken<T> type) |
abstract <T> Node |
TypeInferringNode.resolve(ParseSession session,
TypeToken<T> target)
|
<T> Node |
LambdaNode.resolve(ParseSession session,
TypeToken<T> type) |
<T> Node |
BoundMethodReferenceNode.resolve(ParseSession session,
TypeToken<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
LogicalOrParser.createNode(Op op,
Node lhNode,
Node rhNode) |
protected Node |
LogicalAndParser.createNode(Op op,
Node lhNode,
Node rhNode) |
protected Node |
BinaryExprParser.createNode(Op op,
Node lhs,
Node rhs) |
protected Node |
AssignmentExprParser.createNode(Op op,
Node lhs,
Node rhs) |
| Constructor and Description |
|---|
BoundMethodReferenceNode(Node node,
String name)
Constructor.
|
CastNode(ClassNode typeNode,
Node target)
Constructor.
|
LambdaNode(List<LambdaNode.Param> params,
Node body)
Constructor.
|
MethodInvokeNode(Node targetNode,
String name,
List<Node> paramNodes)
Constructor for instance method invocation.
|
| Constructor and Description |
|---|
BinaryExprParser(Parser<? extends Node> lowerLevel,
boolean leftAssociative,
Op... ops)
Primary constructor.
|
BinaryExprParser(Parser<? extends Node> lowerLevel,
Op... ops)
Convenience constructor for left-associative operators.
|
ConstructorInvokeNode(ClassNode classNode,
List<Node> paramNodes)
Constructor.
|
EmptyArrayNode(ClassNode baseTypeNode,
List<Node> dimensionList)
Constructor.
|
MethodInvokeNode(Class<?> klass,
String name,
List<Node> paramNodes)
Constructor for static method invocation.
|
MethodInvokeNode(Node targetNode,
String name,
List<Node> paramNodes)
Constructor for instance method invocation.
|
| Modifier and Type | Method and Description |
|---|---|
protected Node[] |
AbstractFunction.parseExpressionParams(ParseSession session,
ParseContext ctx,
boolean complete,
int skippedArgs,
int minArgs,
int maxArgs)
Parse some number of Java expression function arguments.
|
protected Node |
AbstractFunction.parseNextParameter(ParseSession session,
ParseContext ctx,
boolean complete,
int skippedArgs,
List<Node> paramList)
Parse the next function parameter.
|
Node[] |
SimpleFunction.parseParams(ParseSession session,
ParseContext ctx,
boolean complete) |
| Modifier and Type | Method and Description |
|---|---|
protected Value |
ApplyExprFunction.evaluate(ParseSession session,
String variable,
Value value,
Node expr)
Set the variable to the given value and then evaluate the expression.
|
| Modifier and Type | Method and Description |
|---|---|
protected Node |
AbstractFunction.parseNextParameter(ParseSession session,
ParseContext ctx,
boolean complete,
int skippedArgs,
List<Node> paramList)
Parse the next function parameter.
|
Copyright © 2017. All rights reserved.