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 | Description |
---|---|---|
static class |
Java.ArrayType |
Representation of a JLS7 10.1 'array type'.
|
static class |
Java.BasicType |
Representation of a JLS7 18 "basic type" (obviously equivalent to a JLS7 4.2 "primitive type").
|
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(...)'.
|
static class |
Java.SimpleType |
This class is not used when code is parsed; it is intended for "programmatic" types.
|
Modifier and Type | Field | 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.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.NamedClassDeclaration.optionalExtendedType |
The type of the extended class.
|
Java.Type |
Java.SuperclassFieldAccessExpression.optionalQualification |
The optional qualification before '.super.fld'.
|
Java.Type |
Java.QualifiedThisReference.qualification |
The qualification left from the 'this' keyword.
|
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.ClassLiteral.type |
The type left of the '.class' suffix.
|
Java.Type |
Java.FieldDeclaration.type |
The type of this field.
|
Java.Type |
Java.FunctionDeclarator.FormalParameter.type |
The type of the parameter.
|
Java.Type |
Java.FunctionDeclarator.type |
The return type of the function (VOID for constructors).
|
Java.Type |
Java.LocalVariableDeclarationStatement.type |
The declared type of the local variable.
|
Java.Type |
Java.MarkerAnnotation.type |
The type of this marker annotation.
|
Java.Type |
Java.NewArray.type |
The component type of the (
Java.NewArray.dimExprs .length + Java.NewArray.dims )-dimensional array to
instantiate. |
Java.Type |
Java.NewClassInstance.type |
The type to instantiate.
|
Java.Type |
Java.NormalAnnotation.type |
The type of this normal annotation.
|
Java.Type |
Java.SingleElementAnnotation.type |
The type of this single-element annotation.
|
Modifier and Type | Method | Description |
---|---|---|
protected Java.Type[] |
SimpleCompiler.classesToTypes(Location location,
Class[] classes) |
|
protected Java.Type |
SimpleCompiler.classToType(Location location,
Class clazz) |
|
Java.Type |
Java.Annotation.getType() |
|
Java.Type |
Java.MarkerAnnotation.getType() |
|
Java.Type |
Java.NormalAnnotation.getType() |
|
Java.Type |
Java.SingleElementAnnotation.getType() |
|
Java.Type |
Parser.parseType() |
Type := (
'byte' | 'short' | 'char' | 'int' | 'long' |
'float' | 'double' | 'boolean' |
ReferenceType
) { '[' ']' }
|
Java.Type |
Java.AmbiguousName.toType() |
|
Java.Type |
Java.Atom.toType() |
|
Java.Type |
Java.Type.toType() |
|
Java.Type |
Java.Atom.toTypeOrCompileException() |
Modifier and Type | Method | Description |
---|---|---|
Java.MethodDeclarator |
Parser.parseMethodDeclarationRest(String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
String name) |
MethodDeclarationRest :=
FormalParameters
{ '[' ']' }
[ 'throws' ReferenceTypeList ]
( ';' | MethodBody )
|
Constructor | Description |
---|---|
AnonymousClassDeclaration(Location location,
Java.Type baseType) |
|
ArrayType(Java.Type componentType) |
|
Cast(Location location,
Java.Type targetType,
Java.Rvalue value) |
|
ClassLiteral(Location location,
Java.Type type) |
|
ConstructorDeclarator(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.FunctionDeclarator.FormalParameters parameters,
Java.Type[] thrownExceptions,
Java.ConstructorInvocation optionalConstructorInvocation,
List<Java.BlockStatement> statements) |
|
FieldDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
|
FormalParameter(Location location,
boolean finaL,
Java.Type type,
String name) |
|
FunctionDeclarator(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameters parameters,
Java.Type[] thrownExceptions,
List<? extends Java.BlockStatement> optionalStatements) |
|
Instanceof(Location location,
Java.Rvalue lhs,
Java.Type rhs) |
|
InterfaceDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type[] extendedTypes) |
|
LocalClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
|
LocalVariableDeclarationStatement(Location location,
Java.Modifiers modifiers,
Java.Type type,
Java.VariableDeclarator[] variableDeclarators) |
|
MarkerAnnotation(Java.Type type) |
|
MemberClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
|
MemberInterfaceDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type[] extendedTypes) |
|
MethodDeclarator(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
Java.Type type,
String name,
Java.FunctionDeclarator.FormalParameters parameters,
Java.Type[] thrownExceptions,
List<? extends Java.BlockStatement> optionalStatements) |
|
NamedClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
|
NewArray(Location location,
Java.Type type,
Java.Rvalue[] dimExprs,
int dims) |
Create a new array with dimension dimExprs.length + dims
|
NewClassInstance(Location location,
Java.Rvalue optionalQualification,
Java.Type type,
Java.Rvalue[] arguments) |
|
NormalAnnotation(Java.Type type,
Java.ElementValuePair[] elementValuePairs) |
|
PackageMemberClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
|
PackageMemberInterfaceDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type[] extendedTypes) |
|
QualifiedThisReference(Location location,
Java.Type qualification) |
|
SingleElementAnnotation(Java.Type type,
Java.ElementValue elementValue) |
|
SuperclassFieldAccessExpression(Location location,
Java.Type optionalQualification,
String fieldName) |
Modifier and Type | Method | Description |
---|---|---|
void |
Traverser.traverseType(Java.Type t) |
Copyright © 2001–2019. All rights reserved.