Package | Description |
---|---|
org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM compiler.
|
org.codehaus.janino.util |
Application-independent helper classes.
|
Modifier and Type | Class and Description |
---|---|
static class |
Java.AlternateConstructorInvocation
Representation of a JLS7 8.8.7.1.
|
static class |
Java.AmbiguousName
Representation of a JLS7 6.5.2 'ambiguous name'.
|
static class |
Java.ArrayAccessExpression
Representation of a JLS7 15.13 'array access expression'.
|
static class |
Java.ArrayLength
Representation of the JLS7 10.7 array type 'length' pseudo-member.
|
static class |
Java.ArrayType
Representation of a JLS7 10.1 'array type'.
|
static class |
Java.Assignment
Representation of all JLS7 15.26 assignments.
|
static class |
Java.BasicType
Representation of a JLS7 18 "basic type" (obviously equivalent to a JLS7 4.2 "primitive type").
|
static class |
Java.BinaryOperation
Representation of all non-operand-modifying binary operations.
|
static class |
Java.BooleanLiteral
Representation of a "boolean literal" (JLS7 3.10.3) (type
boolean ). |
static class |
Java.BooleanRvalue
Base class for
Java.Rvalue s that compile better as conditional branches. |
static class |
Java.Cast
Representation of a JLS7 15.16 'cast expression'.
|
static class |
Java.CharacterLiteral
Representation of a "character literal" (JLS7 3.10.4) (type
char ). |
static class |
Java.ClassLiteral
Representation of a JLS7 15.8.2 'class literal'.
|
static class |
Java.ConditionalExpression
Representation of a JLS7 15.25 'conditional operation'.
|
static class |
Java.ConstructorInvocation
Abstract bas class for
Java.SuperConstructorInvocation and Java.AlternateConstructorInvocation . |
static class |
Java.Crement
Representation of a JLS7 15.14.2 'postfix increment operation', a JLS7 15.14.3 'postfix decrement operation', a
JLS7 15.15.1 'prefix increment operation' or a JLS7 15.15.2 'prefix decrement operation'.
|
static class |
Java.FieldAccess
Representation of an access to a field of a class or an interface.
|
static class |
Java.FieldAccessExpression
Representation of a JLS7 15.11 'field access expression', including the "array length" pseudo field access.
|
static class |
Java.FloatingPointLiteral
Representation of a "floating-point literal" (JLS7 3.10.2) (types
float and double ). |
static class |
Java.Instanceof
Representation of a JLS7 15.20.2 'type comparison operation'.
|
static class |
Java.IntegerLiteral
Representation of an "integer literal" (JLS7 3.10.1) (types
int and long ). |
static class |
Java.Invocation
Abstract base class for
Java.MethodInvocation and Java.SuperclassMethodInvocation . |
static class |
Java.Literal
Abstract base class for the various Java™ literals; see JLS7 3.10.
|
static class |
Java.LocalVariableAccess
Representation of a local variable access -- used during compilation.
|
static class |
Java.Lvalue
Representation of an "lvalue", i.e.
|
static class |
Java.MethodInvocation
Representation of a JLS7 15.12 'method invocation expression'.
|
static class |
Java.NewAnonymousClassInstance
Representation of a JLS7 15.9 'anonymous class instance creation expression'.
|
static class |
Java.NewArray
Representation of a JLS7 15.10 'array creation expression'.
|
static class |
Java.NewClassInstance
Representation of a JLS7 'class instance creation expression'.
|
static class |
Java.NewInitializedArray
Representation of a JLS7 15.10 'array creation expression'.
|
static class |
Java.NullLiteral
Representation of a "null literal" (JLS7 3.10.7).
|
static class |
Java.Package
Representation of a JLS7 6.5.2.1.5 'package name'.
|
static class |
Java.ParameterAccess
'Artificial' operation for accessing the parameters of the synthetic constructor of an anonymous class.
|
static class |
Java.ParenthesizedExpression
Representation of a JLS7 15.8.5 'parenthesized expression'.
|
static class |
Java.QualifiedThisReference
Representation of an JLS7 15.8.4 access to the current object or an enclosing instance.
|
static class |
Java.ReferenceType
representation of a JLS7 4.3 reference type.
|
static class |
Java.Rvalue
Representation of an "rvalue", i.e.
|
static class |
Java.RvalueMemberType
Representation of the first part of a JLS7 15.9 'Qualified class instance creation expression': The 'a.new
MyClass' part of 'a.new MyClass(...)'.
|
static class |
Java.SimpleConstant
This class is not used when code is parsed; it is intended for "programmatic" literals.
|
static class |
Java.SimpleType
This class is not used when code is parsed; it is intended for "programmatic" types.
|
static class |
Java.StringLiteral
Representation of a "string literal" (JLS7 3.10.5) (type
String ). |
static class |
Java.SuperclassFieldAccessExpression
Representation of an JLS7 'superclass field access expression', e.g.
|
static class |
Java.SuperclassMethodInvocation
Representation of a JLS7 15.12.1.1.3 'superclass method invocation'.
|
static class |
Java.SuperConstructorInvocation
Representation of a JLS7 8.8.7.1.
|
static class |
Java.ThisReference
Representation of an JLS7 15.8.3 access to the innermost enclosing instance.
|
static class |
Java.Type
Representation of a Java™ type.
|
static class |
Java.UnaryOperation
Representation of a JLS7 15.15.3 'unary plus operator', a JLS7 15.15.4 'unary minus operator', a JLS7 15.15.5
'bitwise complement operator' or a JLS7 15.15.6 'logical complement operator'.
|
Modifier and Type | Field and Description |
---|---|
Java.Atom |
Java.FieldAccess.lhs
The left-hand-side of the field access - either a type or an rvalue (which includes all
lvalues).
|
Java.Atom |
Java.FieldAccessExpression.lhs
|
Java.Atom |
Java.MethodInvocation.optionalTarget
The optional type or rvalue that qualifies this method invocation.
|
Modifier and Type | Method and Description |
---|---|
Java.Atom |
Parser.parseAdditiveExpression()
AdditiveExpression :=
MultiplicativeExpression { ( '+' | '-' ) MultiplicativeExpression }
|
Java.Atom |
Parser.parseAndExpression()
AndExpression :=
EqualityExpression { '&' EqualityExpression }
|
Java.Atom |
Parser.parseAssignmentExpression()
AssignmentExpression :=
ConditionalExpression [ AssignmentOperator AssignmentExpression ]
AssignmentOperator :=
'=' | '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' |
'>>=' | '>>>=' | '&=' | '^=' | '|='
|
Java.Atom |
Parser.parseConditionalAndExpression()
ConditionalAndExpression :=
InclusiveOrExpression { '&&' InclusiveOrExpression }
|
Java.Atom |
Parser.parseConditionalExpression()
ConditionalExpression :=
ConditionalOrExpression [ '?' Expression ':' ConditionalExpression ]
|
Java.Atom |
Parser.parseConditionalOrExpression()
ConditionalOrExpression :=
ConditionalAndExpression { '||' ConditionalAndExpression ]
|
Java.Atom |
Parser.parseEqualityExpression()
EqualityExpression :=
RelationalExpression { ( '==' | '!=' ) RelationalExpression }
|
Java.Atom |
Parser.parseExclusiveOrExpression()
ExclusiveOrExpression :=
AndExpression { '^' AndExpression }
|
Java.Atom |
Parser.parseExpression()
Expression := AssignmentExpression
|
Java.Atom |
Parser.parseInclusiveOrExpression()
InclusiveOrExpression :=
ExclusiveOrExpression { '|' ExclusiveOrExpression }
|
Java.Atom |
Parser.parseMultiplicativeExpression()
MultiplicativeExpression :=
UnaryExpression { ( '*' | '/' | '%' ) UnaryExpression }
|
Java.Atom |
Parser.parsePrimary()
Primary :=
CastExpression | // CastExpression 15.16
'(' Expression ')' | // ParenthesizedExpression 15.8.5
Literal | // Literal 15.8.1
Name | // AmbiguousName
Name Arguments | // MethodInvocation
Name '[]' { '[]' } | // ArrayType 10.1
Name '[]' { '[]' } '.' 'class' | // ClassLiteral 15.8.2
'this' | // This 15.8.3
'this' Arguments | // Alternate constructor invocation 8.8.5.1
'super' Arguments | // Unqualified superclass constructor invocation 8.8.5.1
'super' '.' Identifier | // SuperclassFieldAccess 15.11.2
'super' '.' Identifier Arguments | // SuperclassMethodInvocation 15.12.4.9
NewClassInstance |
NewAnonymousClassInstance | // ClassInstanceCreationExpression 15.9
NewArray | // ArrayCreationExpression 15.10
NewInitializedArray | // ArrayInitializer 10.6
BasicType { '[]' } | // Type
BasicType { '[]' } '.' 'class' | // ClassLiteral 15.8.2
'void' '.' 'class' // ClassLiteral 15.8.2
CastExpression :=
'(' PrimitiveType { '[]' } ')' UnaryExpression |
'(' Expression ')' UnaryExpression
NewClassInstance := 'new' ReferenceType Arguments
NewAnonymousClassInstance := 'new' ReferenceType Arguments [ ClassBody ]
NewArray := 'new' Type DimExprs { '[]' }
NewInitializedArray := 'new' ArrayType ArrayInitializer
|
Java.Atom |
Parser.parseRelationalExpression()
RelationalExpression :=
ShiftExpression {
'instanceof' ReferenceType
| '<' ShiftExpression [ { ',' TypeArgument } '>' ]
| '<' TypeArgument [ { ',' TypeArgument } '>' ]
| ( '>' | '<=' | '>=' ) ShiftExpression
}
|
Java.Atom |
Parser.parseSelector(Java.Atom atom)
Selector :=
'.' Identifier | // FieldAccess 15.11.1
'.' Identifier Arguments | // MethodInvocation
'.' 'this' // QualifiedThis 15.8.4
'.' 'super' Arguments // Qualified superclass constructor invocation (JLS7 8.8.7.1)
'.' 'super' '.' Identifier | // SuperclassFieldReference (JLS7 15.11.2)
'.' 'super' '.' Identifier Arguments | // SuperclassMethodInvocation (JLS7 15.12.3)
'.' 'new' Identifier Arguments [ ClassBody ] | // QualifiedClassInstanceCreationExpression 15.9
'.' 'class'
'[' Expression ']' // ArrayAccessExpression 15.13
|
Java.Atom |
Parser.parseShiftExpression()
ShiftExpression :=
AdditiveExpression { ( '<<' | '>>' | '>>>' ) AdditiveExpression }
|
Java.Atom |
Parser.parseUnaryExpression()
UnaryExpression :=
{ PrefixOperator } Primary { Selector } { PostfixOperator }
PrefixOperator := '++' | '--' | '+' | '-' | '~' | '!'
PostfixOperator := '++' | '--'
|
Modifier and Type | Method and Description |
---|---|
Java.Atom |
Parser.parseSelector(Java.Atom atom)
Selector :=
'.' Identifier | // FieldAccess 15.11.1
'.' Identifier Arguments | // MethodInvocation
'.' 'this' // QualifiedThis 15.8.4
'.' 'super' Arguments // Qualified superclass constructor invocation (JLS7 8.8.7.1)
'.' 'super' '.' Identifier | // SuperclassFieldReference (JLS7 15.11.2)
'.' 'super' '.' Identifier Arguments | // SuperclassMethodInvocation (JLS7 15.12.3)
'.' 'new' Identifier Arguments [ ClassBody ] | // QualifiedClassInstanceCreationExpression 15.9
'.' 'class'
'[' Expression ']' // ArrayAccessExpression 15.13
|
Constructor and Description |
---|
FieldAccess(Location location,
Java.Atom lhs,
IClass.IField field) |
FieldAccessExpression(Location location,
Java.Atom lhs,
String fieldName) |
MethodInvocation(Location location,
Java.Atom optionalTarget,
String methodName,
Java.Rvalue[] arguments) |
Modifier and Type | Method and Description |
---|---|
void |
Traverser.traverseAtom(Java.Atom a) |
Copyright © 2001–2016. All rights reserved.