| Package | Description |
|---|---|
| org.codehaus.janino |
The core of the Janino Java compiler.
|
| org.codehaus.janino.util |
Application-independent helper classes.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Java.ArrayType
Representation of a JLS7 10.1 "array type".
|
static class |
Java.PrimitiveType
Representation of a JLS7 4.2 "primitive type", i.e a primitive type "usage", which has a location.
|
static class |
Java.ReferenceType
Representation of a JLS7 4.3 reference type.
|
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(...)" expression. |
static class |
Java.SimpleType
This class is not used when code is parsed; it is intended for "programmatic" types.
|
| Modifier and Type | Field and Description |
|---|---|
Java.Type |
Java.AnonymousClassDeclaration.baseType
Base class or interface.
|
Java.Type |
Java.ArrayType.componentType
The (declared) type of the array's components.
|
Java.Type |
Java.NamedClassDeclaration.extendedType
The type of the extended class.
|
Java.Type[] |
Java.InterfaceDeclaration.extendedTypes
The types of the interfaces that this interface extends.
|
Java.Type[] |
Java.NamedClassDeclaration.implementedTypes
The types of the implemented interfaces.
|
Java.Type |
Java.QualifiedThisReference.qualification
The qualification left from the "this" keyword.
|
Java.Type |
Java.SuperclassFieldAccessExpression.qualification
The optional qualification before "
.super.fld". |
Java.Type |
Java.Instanceof.rhs
The type that the
Java.Instanceof.lhs is checked against. |
Java.Type |
Java.Cast.targetType
The type to convert to.
|
Java.Type[] |
Java.FunctionDeclarator.thrownExceptions
The types of the declared exceptions.
|
Java.Type |
Java.AbstractAnnotation.type
The type of this annotation.
|
Java.Type |
Java.FunctionDeclarator.type
The return type of the function (VOID for constructors).
|
Java.Type |
Java.FunctionDeclarator.FormalParameter.type
The type of the parameter.
|
Java.Type |
Java.FieldDeclaration.type
The type of this field.
|
Java.Type |
Java.TryStatement.LocalVariableDeclaratorResource.type
The declared type of the resource variable.
|
Java.Type |
Java.LocalVariableDeclarationStatement.type
The declared type of the local variable.
|
Java.Type |
Java.ClassLiteral.type
The type left of the ".class" suffix.
|
Java.Type |
Java.NewClassInstance.type
The type to instantiate.
|
Java.Type |
Java.NewArray.type
The component type of the (
Java.NewArray.dimExprs.length + Java.NewArray.dims)-dimensional array to
instantiate. |
Java.Type |
Java.ClassInstanceCreationReference.type
The class type that this expression instantiates.
|
Java.Type[] |
Java.CatchParameter.types
The types of the parameter.
|
| Modifier and Type | Method and Description |
|---|---|
protected Java.Type[] |
ExpressionEvaluator.classesToTypes(Location location,
Class<?>... classes)
|
protected Java.Type[] |
SimpleCompiler.classesToTypes(Location location,
Class<?>[] classes)
|
protected Java.Type[] |
ScriptEvaluator.classesToTypes(Location location,
Class<?>[] classes) |
Java.Type[] |
ClassBodyEvaluator.classesToTypes(Location location,
Class<?>[] classes) |
protected Java.Type |
SimpleCompiler.classToType(Location location,
Class<?> clazz)
|
protected Java.Type |
ScriptEvaluator.classToType(Location loc,
Class<?> clazz) |
protected Java.Type |
ExpressionEvaluator.classToType(Location location,
Class<?> clazz)
|
protected Java.Type |
ClassBodyEvaluator.classToType(Location location,
Class<?> clazz) |
Java.Type[] |
Java.MemberEnumDeclaration.getImplementedTypes() |
Java.Type[] |
Java.EnumDeclaration.getImplementedTypes() |
Java.Type[] |
Java.PackageMemberEnumDeclaration.getImplementedTypes() |
Java.Type |
Java.Annotation.getType() |
Java.Type |
Java.MarkerAnnotation.getType() |
Java.Type |
Java.SingleElementAnnotation.getType() |
Java.Type |
Java.NormalAnnotation.getType() |
protected Java.Type |
SimpleCompiler.optionalClassToType(Location location,
Class<?> clazz)
|
protected Java.Type |
ScriptEvaluator.optionalClassToType(Location loc,
Class<?> clazz) |
protected Java.Type |
ExpressionEvaluator.optionalClassToType(Location location,
Class<?> clazz)
|
protected Java.Type |
ClassBodyEvaluator.optionalClassToType(Location location,
Class<?> clazz) |
Java.Type |
Parser.parseType()
Type := (
'byte' | 'short' | 'char' | 'int' | 'long' |
'float' | 'double' | 'boolean' |
ReferenceType
) { '[' ']' }
|
Java.Type |
Parser.parseVoidOrType()
VoidOrType := 'void' | Type
|
Java.Type |
Java.Atom.toType() |
Java.Type |
Java.Type.toType() |
Java.Type |
Java.AmbiguousName.toType() |
Java.Type |
Java.Atom.toTypeOrCompileException() |
| Modifier and Type | Method and Description |
|---|---|
Java.FunctionDeclarator.FormalParameters |
Parser.parseFormalParameterListRest(Java.Type firstParameterType)
FormalParameterListRest := Identifier { ',' FormalParameter }
|
Java.FunctionDeclarator.FormalParameter |
Parser.parseFormalParameterRest(Java.Modifier[] modifiers,
Java.Type type,
boolean[] hasEllipsis)
FormalParameterRest := [ '.' '.' '.' ] Identifier BracketsOpt
|
Java.MethodDeclarator |
Parser.parseMethodDeclarationRest(String docComment,
Java.Modifier[] modifiers,
Java.TypeParameter[] typeParameters,
Java.Type type,
String name,
boolean allowDefaultClause,
Parser.MethodDeclarationContext context)
MethodDeclarationRest :=
FormalParameters
{ '[' ']' }
[ 'throws' ReferenceTypeList ]
[ 'default' expression ]
( ';' | MethodBody )
|
void |
Unparser.unparseType(Java.Type t) |
R |
Visitor.AtomVisitor.visitType(Java.Type t)
Invoked by
Java.Atom.accept(Visitor.AtomVisitor). |
| Modifier and Type | Method and Description |
|---|---|
Java.Type |
DeepCopier.copyOptionalType(Java.Type subject) |
Java.Type |
DeepCopier.copyPrimitiveType(Java.PrimitiveType bt) |
Java.Type |
DeepCopier.copyRvalueMemberType(Java.RvalueMemberType subject) |
Java.Type |
DeepCopier.copySimpleType(Java.SimpleType st) |
Java.Type |
DeepCopier.copyType(Java.Type subject) |
Java.Type[] |
DeepCopier.copyTypes(Java.Type[] subject) |
| Modifier and Type | Method and Description |
|---|---|
Java.Type |
DeepCopier.copyOptionalType(Java.Type subject) |
Java.Type |
DeepCopier.copyType(Java.Type subject) |
Java.Type[] |
DeepCopier.copyTypes(Java.Type[] subject) |
void |
Traverser.traverseType(Java.Type t) |
void |
AbstractTraverser.traverseType(Java.Type t) |
Copyright © 2022. All rights reserved.