# Uses of Class
org.codehaus.janino.Java.Type

Packages that use Java.Type
Package
Description
org.codehaus.janino
The core of the Janino Java compiler.
org.codehaus.janino.util
Application-independent helper classes.

## Uses of Java.Type in org.codehaus.janino

Subclasses of Java.Type in org.codehaus.janino
Modifier and Type
Class
Description
`static final class`
`Java.ArrayType`
Representation of a JLS7 10.1 "array type".
`static final class`
`Java.PrimitiveType`
Representation of a JLS7 4.2 "primitive type", i.e a primitive type "usage", which has a location.
`static final class`
`Java.ReferenceType`
Representation of a JLS7 4.3 reference type.
`static final 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 final class`
`Java.SimpleType`
This class is not used when code is parsed; it is intended for "programmatic" types.
Fields in org.codehaus.janino declared as Java.Type
Modifier and Type
Field
Description
`final Java.Type`
Java.AnonymousClassDeclaration.`baseType`
Base class or interface.
`final Java.Type`
Java.ArrayType.`componentType`
The (declared) type of the array's components.
`final Java.Type`
Java.NamedClassDeclaration.`extendedType`
The type of the extended class.
`final Java.Type[]`
Java.InterfaceDeclaration.`extendedTypes`
The types of the interfaces that this interface extends.
`final Java.Type[]`
Java.NamedClassDeclaration.`implementedTypes`
The types of the implemented interfaces.
`final Java.Type`
Java.QualifiedThisReference.`qualification`
The qualification left from the "this" keyword.
`final Java.Type`
Java.SuperclassFieldAccessExpression.`qualification`
The optional qualification before "`.super.fld`".
`final Java.Type`
Java.Instanceof.`rhs`
The type that the `Java.Instanceof.lhs` is checked against.
`final Java.Type`
Java.Cast.`targetType`
The type to convert to.
`final Java.Type[]`
Java.FunctionDeclarator.`thrownExceptions`
The types of the declared exceptions.
`final Java.Type`
Java.AbstractAnnotation.`type`
The type of this annotation.
`final Java.Type`
Java.ClassInstanceCreationReference.`type`
The class type that this expression instantiates.
`final Java.Type`
Java.ClassLiteral.`type`
The type left of the ".class" suffix.
`final Java.Type`
Java.FieldDeclaration.`type`
The type of this field.
`final Java.Type`
Java.FunctionDeclarator.FormalParameter.`type`
The type of the parameter.
`final Java.Type`
Java.FunctionDeclarator.`type`
The return type of the function (VOID for constructors).
`final Java.Type`
Java.LocalVariableDeclarationStatement.`type`
The declared type of the local variable.
`final Java.Type`
Java.NewArray.`type`
The component type of the (`Java.NewArray.dimExprs``.length +` `Java.NewArray.dims`)-dimensional array to instantiate.
`final Java.Type`
Java.NewClassInstance.`type`
The type to instantiate.
`final Java.Type`
Java.TryStatement.LocalVariableDeclaratorResource.`type`
The declared type of the resource variable.
`final Java.Type[]`
Java.CatchParameter.`types`
The types of the parameter.
Methods in org.codehaus.janino that return Java.Type
Modifier and Type
Method
Description
`Java.Type[]`
ClassBodyEvaluator.`classesToTypes(Location location, Class<?>[] classes)`
`protected Java.Type[]`
ExpressionEvaluator.`classesToTypes(Location location, Class<?>... classes)`
Converts an array of `Class`es into an array of`Java.Type`s.
`protected Java.Type[]`
ScriptEvaluator.`classesToTypes(Location location, Class<?>[] classes)`
`protected Java.Type[]`
SimpleCompiler.`classesToTypes(Location location, Class<?>[] classes)`
Converts an array of `Class`es into an array of`Java.Type`s.
`protected Java.Type`
ClassBodyEvaluator.`classToType(Location location, Class<?> clazz)`
`protected Java.Type`
ExpressionEvaluator.`classToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
`protected Java.Type`
ScriptEvaluator.`classToType(Location loc, Class<?> clazz)`
`protected Java.Type`
SimpleCompiler.`classToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
`Java.Type[]`
Java.EnumDeclaration.`getImplementedTypes()`
`Java.Type[]`
Java.MemberEnumDeclaration.`getImplementedTypes()`
`Java.Type[]`
Java.PackageMemberEnumDeclaration.`getImplementedTypes()`
`Java.Type`
Java.Annotation.`getType()`
`Java.Type`
Java.MarkerAnnotation.`getType()`
`Java.Type`
Java.NormalAnnotation.`getType()`
`Java.Type`
Java.SingleElementAnnotation.`getType()`
`protected Java.Type`
ClassBodyEvaluator.`optionalClassToType(Location location, Class<?> clazz)`
`protected Java.Type`
ExpressionEvaluator.`optionalClassToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
`protected Java.Type`
ScriptEvaluator.`optionalClassToType(Location loc, Class<?> clazz)`
`protected Java.Type`
SimpleCompiler.`optionalClassToType(Location location, Class<?> clazz)`
Wraps a reflection `Class` in a `Java.Type` object.
`Java.Type`
Parser.`parseType()`
Type := ( 'byte' | 'short' | 'char' | 'int' | 'long' | 'float' | 'double' | 'boolean' | ReferenceType ) { '[' ']' }
`Java.Type`
Parser.`parseVoidOrType()`
VoidOrType := 'void' | Type
`Java.Type`
Java.AmbiguousName.`toType()`
`Java.Type`
Java.Atom.`toType()`
`Java.Type`
Java.Type.`toType()`
`final Java.Type`
Java.Atom.`toTypeOrCompileException()`
Methods in org.codehaus.janino with parameters of type Java.Type
Modifier and Type
Method
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)`.
Constructors in org.codehaus.janino with parameters of type Java.Type
Modifier
Constructor
Description
``
`AbstractAnnotation(Java.Type type)`
``
`AnonymousClassDeclaration(Location location, Java.Type baseType)`
``
`ArrayType(Java.Type componentType)`
``
`Cast(Location location, Java.Type targetType, Java.Rvalue value)`
``
`CatchParameter(Location location, boolean finaL, Java.Type[] types, String name)`
``
`ClassInstanceCreationReference(Location location, Java.Type type, Java.TypeArgument[] typeArguments)`
``
`ClassLiteral(Location location, Java.Type type)`
``
`ConstructorDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, List<? extends Java.BlockStatement> statements)`
``
`FieldDeclaration(Location location, String docComment, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)`
``
`FormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, String name)`
``
`FunctionDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, List<? extends Java.BlockStatement> statements)`
``
`Instanceof(Location location, Java.Rvalue lhs, Java.Type rhs)`
`protected`
`InterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)`
``
`LocalClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`LocalVariableDeclarationStatement(Location location, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)`
``
`LocalVariableDeclaratorResource(Location location, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator variableDeclarator)`
``
`MarkerAnnotation(Java.Type type)`
``
`MemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`MemberEnumDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Type[] implementedTypes)`
``
`MemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)`
``
`MethodDeclarator(Location location, String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, List<? extends Java.BlockStatement> statements)`
``
`NamedClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`NewArray(Location location, Java.Type type, Java.Rvalue[] dimExprs, int dims)`
Creates a new array with dimension dimExprs`.length +` dims.
``
`NewClassInstance(Location location, Java.Rvalue qualification, Java.Type type, Java.Rvalue[] arguments)`
``
`PackageMemberClassDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)`
``
`PackageMemberEnumDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.Type[] implementedTypes)`
``
`PackageMemberInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)`
``
`QualifiedThisReference(Location location, Java.Type qualification)`
``
`SuperclassFieldAccessExpression(Location location, Java.Type qualification, String fieldName)`

## Uses of Java.Type in org.codehaus.janino.util

Methods in org.codehaus.janino.util that return Java.Type
Modifier and Type
Method
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)`
Methods in org.codehaus.janino.util with parameters of type Java.Type
Modifier and Type
Method
Description
`Java.Type`
DeepCopier.`copyOptionalType(Java.Type subject)`
`Java.Type`
DeepCopier.`copyType(Java.Type subject)`
`Java.Type[]`
DeepCopier.`copyTypes(Java.Type[] subject)`
`void`
AbstractTraverser.`traverseType(Java.Type t)`
`void`
Traverser.`traverseType(Java.Type t)`