Uses of Class
org.codehaus.janino.Java.Atom
Packages that use Java.Atom
Package
Description
The core of the Janino Java compiler.
Application-independent helper classes.
-
Uses of Java.Atom in org.codehaus.janino
Subclasses of Java.Atom in org.codehaus.janinoModifier and TypeClassDescriptionstatic final class
Representation of a JLS7 8.8.7.1.static final class
Representation of a JLS7 6.5.2 "ambiguous name".static final class
Representation of a JLS7 15.13 (JLS8: 15.10.3) "array access expression".static final class
Representation of a "method reference expression", as described in JLS9 15.13, with the form "<var>arrayType</var>::new
".static final class
Representation of the JLS7 10.7 array type "length" pseudo-member.static final class
Representation of a JLS7 10.1 "array type".static final class
Representation of all JLS7 15.26 assignments.static final class
Representation of all non-operand-modifying binary operations.static final class
Representation of a "boolean literal" (JLS7 3.10.3) (typeboolean
).static class
Base class forJava.Rvalue
s that compile better as conditional branches.static final class
Representation of a JLS7 15.16 "cast expression".static final class
Representation of a "character literal" (JLS7 3.10.4) (typechar
).static final class
Representation of a "method reference expression", as described in JLS9 15.13, with the form "<var>classType</var>::new
".static final class
Representation of a JLS7 15.8.2 "class literal".static final class
Representation of a JLS7 15.25 "conditional operation".static class
Abstract bas class forJava.SuperConstructorInvocation
andJava.AlternateConstructorInvocation
.static final class
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 final class
Representation of an access to a field of a class or an interface.static final class
Representation of a JLS7 15.11 "field access expression", including the "array length" pseudo field access.static final class
Representation of a "floating-point literal" (JLS7 3.10.2) (typesfloat
anddouble
).static final class
Representation of a JLS7 15.20.2 "type comparison operation".static final class
Representation of an "integer literal" (JLS7 3.10.1) (typesint
andlong
).static class
Abstract base class forJava.MethodInvocation
andJava.SuperclassMethodInvocation
.static class
Representation of a (Java 8+) "lambda expression", see JLS9 15.27.static class
Abstract base class for the various Java literals; see JLS7 3.10.static final class
Representation of a local variable access -- used during compilation.static class
Representation of an "lvalue", i.e.static final class
Representation of a JLS7 15.12 "method invocation expression".static final class
Representation of a "method reference expression", as described in JLS9 15.13, with the form "<var>referenceType</var>::identifier
.static final class
Representation of a JLS7 15.9 "anonymous class instance creation expression".static final class
Representation of a JLS7 15.10 "array creation expression".static final class
Representation of a JLS7 "class instance creation expression".static final class
Representation of a JLS7 15.10 "array creation expression".static final class
Representation of a "null literal" (JLS7 3.10.7).static final class
Representation of a JLS7 6.5.2.1.5 "package name".static final class
"Artificial" operation for accessing the parameters of the synthetic constructor of an anonymous class.static final class
Representation of a JLS7 15.8.5 "parenthesized expression".static final class
Representation of a JLS7 4.2 "primitive type", i.e a primitive type "usage", which has a location.static final class
Representation of an JLS7 15.8.4 access to the current object or an enclosing instance.static final class
Representation of a JLS7 4.3 reference type.static class
Representation of an "rvalue", i.e.static final class
Representation of the first part of a JLS7 15.9 "Qualified class instance creation expression": The "a.new MyClass
" part of "a.new MyClass(...)
" expression.static final class
This class is not used when code is parsed; it is intended for "programmatic" literals.static final class
This class is not used when code is parsed; it is intended for "programmatic" types.static final class
Representation of a "string literal" (JLS7 3.10.5) (typeString
).static final class
Representation of an JLS7 "superclass field access expression", e.g.static final class
Representation of a JLS7 15.12.1.1.3 "superclass method invocation".static final class
Representation of a JLS7 8.8.7.1.static final class
Representation of an JLS7 15.8.3 access to the innermost enclosing instance.static class
Representation of a Java type.static final class
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".Fields in org.codehaus.janino declared as Java.AtomModifier and TypeFieldDescriptionfinal Java.Atom
Java.FieldAccess.lhs
The left-hand-side of the field access - either a type or an rvalue (which includes all lvalues).final Java.Atom
Java.FieldAccessExpression.lhs
final Java.Atom
Java.MethodReference.lhs
The expression name, primary or reference type that poses the left hand side of the expression.(package private) Java.Atom
Java.AmbiguousName.reclassified
The result of "ambiguous name resolution" during compilation.final Java.Atom
Java.MethodInvocation.target
The optional type or rvalue that qualifies this method invocation.Methods in org.codehaus.janino that return Java.AtomModifier and TypeMethodDescriptionParser.parseAdditiveExpression()
AdditiveExpression := MultiplicativeExpression { ( '+' | '-' ) MultiplicativeExpression }Parser.parseAndExpression()
AndExpression := EqualityExpression { '&' EqualityExpression }Parser.parseAssignmentExpression()
AssignmentExpression := ConditionalExpression [ AssignmentOperator AssignmentExpression ] AssignmentOperator := '=' | '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' | '>>=' | '>>>=' | '&=' | '^=' | '|='Parser.parseConditionalAndExpression()
ConditionalAndExpression := InclusiveOrExpression { '&&' InclusiveOrExpression }Parser.parseConditionalExpression()
ConditionalExpression := ConditionalOrExpression [ '?' Expression ':' ConditionalExpression ]Parser.parseConditionalOrExpression()
ConditionalOrExpression := ConditionalAndExpression { '||' ConditionalAndExpression ]Parser.parseEqualityExpression()
EqualityExpression := RelationalExpression { ( '==' | '!=' ) RelationalExpression }Parser.parseExclusiveOrExpression()
ExclusiveOrExpression := AndExpression { '^' AndExpression }Parser.parseExpressionOrType()
Parser.parseInclusiveOrExpression()
InclusiveOrExpression := ExclusiveOrExpression { '|' ExclusiveOrExpression }Parser.parseMultiplicativeExpression()
MultiplicativeExpression := UnaryExpression { ( '*' | '/' | '%' ) UnaryExpression }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 PrimitiveType { '[]' } | // Type PrimitiveType { '[]' } '.' 'class' | // ClassLiteral 15.8.2 'void' '.' 'class' | // ClassLiteral 15.8.2 MethodReference // MethodReference JLS9 15.13 Name := Identifier { '.' Identifier } CastExpression := '(' PrimitiveType { '[]' } ')' UnaryExpression | '(' Expression ')' UnaryExpression NewClassInstance := 'new' ReferenceType Arguments NewAnonymousClassInstance := 'new' ReferenceType Arguments [ ClassBody ] NewArray := 'new' Type DimExprs { '[]' } NewInitializedArray := 'new' ArrayType ArrayInitializerParser.parseRelationalExpression()
RelationalExpression := ShiftExpression { 'instanceof' ReferenceType | '<' ShiftExpression [ { ',' TypeArgument } '>' ] | '<' TypeArgument [ { ',' TypeArgument } '>' ] | ( '>' | '<=' | '>=' ) ShiftExpression }Parser.parseSelector
(Java.Atom atom) Selector := '.' Identifier | // FieldAccess 15.11.1 '.' Identifier Arguments | // MethodInvocation '.' '<' TypeList '>' 'super' Arguments // Superconstructor invocation (?) '.' '<' TypeList '>' 'super' '.' .Parser.parseShiftExpression()
ShiftExpression := AdditiveExpression { ( '<<' | '>>' | '>>>' ) AdditiveExpression }Parser.parseUnaryExpression()
UnaryExpression := { PrefixOperator } Primary { Selector } { PostfixOperator } PrefixOperator := '++' | '--' | '+' | '-' | '~' | '!' PostfixOperator := '++' | '--'private Java.Atom
UnitCompiler.reclassify
(Java.AmbiguousName an) private Java.Atom
UnitCompiler.reclassifyName
(Location location, Java.Scope scope, String identifier) JLS7 6.5.2.1private Java.Atom
UnitCompiler.reclassifyName
(Location location, Java.Scope scope, String[] identifiers, int n) Reclassifies the ambiguous name consisting of the first n of the identifiers (JLS7 6.5.2.2).Methods in org.codehaus.janino with parameters of type Java.AtomModifier and TypeMethodDescriptionprivate static int
Unparser.comparePrecedence
(String operator, Java.Atom operand) Returns a value < 0 iff theoperator
has lower precedence than theoperand
==; 0 iff theoperator
has equal precedence than theoperand
> 0 iff theoperator
has higher precedence than theoperand
private IType
private boolean
private boolean
Parser.parseSelector
(Java.Atom atom) Selector := '.' Identifier | // FieldAccess 15.11.1 '.' Identifier Arguments | // MethodInvocation '.' '<' TypeList '>' 'super' Arguments // Superconstructor invocation (?) '.' '<' TypeList '>' 'super' '.' .private Java.Lvalue
UnitCompiler.toLvalueOrCompileException
(Java.Atom a) private Java.Rvalue
UnitCompiler.toRvalueOrCompileException
(Java.Atom a) private Java.Type
UnitCompiler.toTypeOrCompileException
(Java.Atom a) private void
void
Unparser.unparseAtom
(Java.Atom a) private void
Unparser.unparseLhs
(Java.Atom lhs, String binaryOperator) Iff thelhs
is unnatural for thebinaryOperator
, encloses thelhs
in parentheses.Constructors in org.codehaus.janino with parameters of type Java.AtomModifierConstructorDescriptionFieldAccess
(Location location, Java.Atom lhs, IClass.IField field) FieldAccessExpression
(Location location, Java.Atom lhs, String fieldName) MethodInvocation
(Location location, Java.Atom target, String methodName, Java.Rvalue[] arguments) MethodReference
(Location location, Java.Atom lhs, String methodName) -
Uses of Java.Atom in org.codehaus.janino.util
Fields in org.codehaus.janino.util with type parameters of type Java.AtomModifier and TypeFieldDescriptionprivate final Visitor.AtomVisitor<Java.Atom,
CompileException> DeepCopier.atomCopier
Methods in org.codehaus.janino.util that return Java.AtomModifier and TypeMethodDescriptionDeepCopier.copyOptionalAtom
(Java.Atom subject) DeepCopier.copyPackage
(Java.Package subject) Methods in org.codehaus.janino.util with parameters of type Java.AtomModifier and TypeMethodDescriptionDeepCopier.copyOptionalAtom
(Java.Atom subject) void
AbstractTraverser.traverseAtom
(Java.Atom a) void
Traverser.traverseAtom
(Java.Atom a) void
void