Package | Description |
---|---|
org.jparsec.examples.java.ast.declaration | |
org.jparsec.examples.java.ast.expression | |
org.jparsec.examples.java.ast.statement | |
org.jparsec.examples.java.parser |
Modifier and Type | Field and Description |
---|---|
Expression |
MethodDef.defaultValue |
Expression |
FieldDef.value |
Modifier and Type | Field and Description |
---|---|
List<Expression> |
EnumDef.Value.arguments |
Constructor and Description |
---|
FieldDef(List<Modifier> modifiers,
TypeLiteral type,
String name,
Expression value) |
MethodDef(List<Modifier> modifiers,
List<TypeParameterDef> typeParameters,
TypeLiteral returnType,
String name,
List<ParameterDef> parameters,
List<TypeLiteral> exceptions,
Expression defaultValue,
BlockStatement body) |
Constructor and Description |
---|
Value(String name,
List<Expression> arguments,
List<Member> body) |
Modifier and Type | Class and Description |
---|---|
class |
ArrayInitializer
Represents array initializer used in variable definition.
|
class |
ArraySubscriptExpression
Represents an "array[i]" expression.
|
class |
BinaryExpression
Represents binary expression such as "a + b".
|
class |
BooleanLiteral
"true" or "false".
|
class |
CastExpression
A cast expression.
|
class |
CharLiteral
Represents a character literal.
|
class |
ClassLiteral
Represents "Foo.class".
|
class |
ConditionalExpression
Represents "?:" expression.
|
class |
ConstructorReference |
class |
DecimalPointNumberLiteral
Represents a decimal point number.
|
class |
Identifier
Represents a simple name as expression.
|
class |
InstanceOfExpression
Represents "expr instanceof type".
|
class |
IntegerLiteral
Represents any integral number literal.
|
class |
LambdaExpression
Represents lambda expressions.
|
class |
MethodCallExpression
Represents expressions like
obj.f(...) . |
class |
MethodReference
Represents expressions like
obj::f . |
class |
NewArrayExpression
Represents a "new Foo[] {...}" or "new Foo[size] {...}" expression.
|
class |
NewExpression
Represents a non-qualified "new" statement with possibly anonymous class syntax.
|
class |
NullExpression
Represents "null".
|
class |
PostfixUnaryExpression
Represents expression with postfix unary operator.
|
class |
PrefixUnaryExpression
Represents expression with prefix unary operator.
|
class |
QualifiedExpression
Represents "obj.field", "SomeType.staticField", "SomeType.SomeNestedType"
or "org.codehaus.jparsec" kind of qualified expressions.
|
class |
ScientificNumberLiteral
Represents scientific notation number.
|
class |
StringLiteral
Represents a string literal.
|
class |
SuperExpression
Represents the "super" keyword.
|
class |
ThisExpression
"this" or "A.B.this".
|
Modifier and Type | Field and Description |
---|---|
Expression |
ConditionalExpression.alternative |
Expression |
ArraySubscriptExpression.array |
Expression |
ConditionalExpression.condition |
Expression |
ConditionalExpression.consequence |
Expression |
PrefixUnaryExpression.expression |
Expression |
PostfixUnaryExpression.expression |
Expression |
InstanceOfExpression.expression |
Expression |
CastExpression.expression |
Expression |
ArraySubscriptExpression.index |
static Expression |
NullExpression.instance |
Expression |
BinaryExpression.left |
Expression |
NewArrayExpression.length |
Expression |
MethodReference.owner |
Expression |
ConstructorReference.owner |
Expression |
QualifiedExpression.qualifier |
Expression |
NewExpression.qualifier |
Expression |
BinaryExpression.right |
Expression |
MethodCallExpression.target |
Modifier and Type | Field and Description |
---|---|
List<Expression> |
NewExpression.arguments |
List<Expression> |
MethodCallExpression.arguments |
List<Expression> |
NewArrayExpression.initializer |
List<Expression> |
ArrayInitializer.values |
Constructor and Description |
---|
ArrayInitializer(List<Expression> values) |
MethodCallExpression(Expression target,
List<TypeLiteral> typeParameters,
String method,
List<Expression> arguments) |
NewArrayExpression(TypeLiteral type,
Expression length,
List<Expression> initializer) |
NewExpression(Expression qualifier,
TypeLiteral type,
List<Expression> arguments,
DefBody classBody) |
Modifier and Type | Field and Description |
---|---|
Expression |
WhileStatement.condition |
Expression |
SwitchStatement.condition |
Expression |
IfStatement.condition |
Expression |
ForStatement.condition |
Expression |
DoWhileStatement.condition |
Expression |
AssertStatement.condition |
Expression |
ExpressionStatement.expression |
Expression |
AssertStatement.message |
Expression |
ForeachStatement.of |
Expression |
ThrowStatement.thrown |
Expression |
VarStatement.Var.value |
Expression |
ReturnStatement.value |
Expression |
Annotation.Element.value |
Modifier and Type | Field and Description |
---|---|
List<Expression> |
ThisCallStatement.args |
List<Expression> |
SuperCallStatement.args |
List<Pair<Expression,Statement>> |
SwitchStatement.cases |
List<Pair<Expression,Statement>> |
IfStatement.elseifs |
List<Expression> |
ExpressionListStatement.expressions |
List<Expression> |
ForStatement.incrementer |
Constructor and Description |
---|
AssertStatement(Expression condition,
Expression message) |
DoWhileStatement(Statement statement,
Expression condition) |
Element(String name,
Expression value) |
ExpressionStatement(Expression expression) |
ForeachStatement(TypeLiteral type,
String var,
Expression of,
Statement statement) |
ForStatement(Statement initializer,
Expression condition,
List<Expression> incrementer,
Statement statement) |
IfStatement(Expression condition,
Statement then,
List<Pair<Expression,Statement>> elseifs,
Statement otherwise) |
ReturnStatement(Expression value) |
SwitchStatement(Expression condition,
List<Pair<Expression,Statement>> cases,
Statement defaultCase) |
ThrowStatement(Expression thrown) |
Var(String name,
Expression value) |
WhileStatement(Expression condition,
Statement statement) |
Constructor and Description |
---|
ExpressionListStatement(List<Expression> expressions) |
ForStatement(Statement initializer,
Expression condition,
List<Expression> incrementer,
Statement statement) |
IfStatement(Expression condition,
Statement then,
List<Pair<Expression,Statement>> elseifs,
Statement otherwise) |
SuperCallStatement(List<Expression> args) |
SwitchStatement(Expression condition,
List<Pair<Expression,Statement>> cases,
Statement defaultCase) |
ThisCallStatement(List<Expression> args) |
Modifier and Type | Method and Description |
---|---|
static Parser<Expression> |
ExpressionParser.arrayInitializer(Parser<Expression> expr) |
static Parser<Expression> |
ExpressionParser.expression(Parser<DefBody> classBody,
Parser<Statement> statement) |
Modifier and Type | Method and Description |
---|---|
static Parser<Expression> |
ExpressionParser.arrayInitializer(Parser<Expression> expr) |
Copyright © 2013–2016 jparsec. All rights reserved.