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 |
static class |
Java.AmbiguousName
This class is special: It does not extend/implement the Atom subclasses,
but overrides Atom's "to...()" methods.
|
static class |
Java.ArrayAccessExpression
This class implements an array access.
|
static class |
Java.ArrayLength |
static class |
Java.ArrayType
Representation of a Java™ array type (JLS 10.1).
|
static class |
Java.Assignment |
static class |
Java.BasicType
Representation of a Java™ "basic type" (obviously
equaivalent to a "primitive type") (JLS 4.2).
|
static class |
Java.BinaryOperation
Representation of all non-operand-modifying Java™ binary
operations.
|
static class |
Java.BooleanRvalue
Base class for
Java.Rvalue s that compile better as conditional
branches. |
static class |
Java.Cast |
static class |
Java.ClassLiteral |
static class |
Java.ConditionalExpression |
static class |
Java.ConstructorInvocation |
static class |
Java.Crement
Objects of this class represent represent one pre- or post-increment
or decrement.
|
static class |
Java.FieldAccess
Representation of an access to a field of a class or an interface.
|
static class |
Java.FieldAccessExpression
This class implements class or interface field access, and also the "array length"
expression "xy.length".
|
static class |
Java.Instanceof |
static class |
Java.Invocation |
static class |
Java.Literal |
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 |
static class |
Java.NewAnonymousClassInstance |
static class |
Java.NewArray |
static class |
Java.NewClassInstance |
static class |
Java.NewInitializedArray |
static class |
Java.Package |
static class |
Java.ParameterAccess |
static class |
Java.ParenthesizedExpression |
static class |
Java.QualifiedThisReference
Representation of an access to the current object or an enclosing instance.
|
static class |
Java.ReferenceType |
static class |
Java.Rvalue
Representation of an "rvalue", i.e.
|
static class |
Java.RvalueMemberType |
static class |
Java.SimpleType |
static class |
Java.SuperclassFieldAccessExpression
Representation of "super.fld" and "Type.super.fld".
|
static class |
Java.SuperclassMethodInvocation |
static class |
Java.SuperConstructorInvocation |
static class |
Java.ThisReference
Representation of an access to the innermost enclosing instance.
|
static class |
Java.Type
Representation of a Java™ type.
|
static class |
Java.UnaryOperation
This class implements the unary operators "+", "-", "~" and "!".
|
Modifier and Type | Field and Description |
---|---|
Java.Atom |
Java.FieldAccess.lhs |
Java.Atom |
Java.FieldAccessExpression.lhs |
Java.Atom |
Java.MethodInvocation.optionalTarget
null == method invocation by simple method name
|
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.parseLiteral() |
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 {
( ( '<' | '>' | '<=' | '>=' ) ShiftExpression ) |
( 'instanceof' ReferenceType )
}
|
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 (JLS 8.8.5.1)
'.' 'super' '.' Identifier | // SuperclassFieldReference (JLS 15.11.2)
'.' 'super' '.' Identifier Arguments | // SuperclassMethodInvocation (JLS 15.12.4.9)
'.' '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 (JLS 8.8.5.1)
'.' 'super' '.' Identifier | // SuperclassFieldReference (JLS 15.11.2)
'.' 'super' '.' Identifier Arguments | // SuperclassMethodInvocation (JLS 15.12.4.9)
'.' 'new' Identifier Arguments [ ClassBody ] | // QualifiedClassInstanceCreationExpression 15.9
'.' 'class'
'[' Expression ']' // ArrayAccessExpression 15.13
|
Java.Lvalue |
UnitCompiler.toLvalueOrCE(Java.Atom a) |
Constructor and Description |
---|
Java.FieldAccess(Location location,
Java.Atom lhs,
IClass.IField field) |
Java.FieldAccessExpression(Location location,
Java.Atom lhs,
String fieldName) |
Java.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-2015. All Rights Reserved.