Uses of Class
org.codehaus.janino.Java.Type
Packages that use Java.Type
Package
Description
The core of the Janino Java compiler.
Application-independent helper classes.
-
Uses of Java.Type in org.codehaus.janino
Subclasses of Java.Type in org.codehaus.janinoModifier and TypeClassDescriptionstatic final class
Representation of a JLS7 10.1 "array type".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 a JLS7 4.3 reference type.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" types.Fields in org.codehaus.janino declared as Java.TypeModifier and TypeFieldDescriptionfinal 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 theJava.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.private Java.Type
Java.AmbiguousName.type
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.TypeModifier and TypeMethodDescriptionClassBodyEvaluator.classesToTypes
(Location location, Class<?>[] classes) protected Java.Type[]
ExpressionEvaluator.classesToTypes
(Location location, Class<?>... classes) protected Java.Type[]
ScriptEvaluator.classesToTypes
(Location location, Class<?>[] classes) protected Java.Type[]
SimpleCompiler.classesToTypes
(Location location, Class<?>[] classes) protected Java.Type
ClassBodyEvaluator.classToType
(Location location, Class<?> clazz) protected Java.Type
ExpressionEvaluator.classToType
(Location location, Class<?> clazz) protected Java.Type
ScriptEvaluator.classToType
(Location loc, Class<?> clazz) protected Java.Type
SimpleCompiler.classToType
(Location location, Class<?> clazz) Java.EnumDeclaration.getImplementedTypes()
Java.MemberEnumDeclaration.getImplementedTypes()
Java.PackageMemberEnumDeclaration.getImplementedTypes()
Java.Annotation.getType()
Java.MarkerAnnotation.getType()
Java.NormalAnnotation.getType()
Java.SingleElementAnnotation.getType()
protected Java.Type
ClassBodyEvaluator.optionalClassToType
(Location location, Class<?> clazz) protected Java.Type
ExpressionEvaluator.optionalClassToType
(Location location, Class<?> clazz) protected Java.Type
ScriptEvaluator.optionalClassToType
(Location loc, Class<?> clazz) protected Java.Type
SimpleCompiler.optionalClassToType
(Location location, Class<?> clazz) Parser.parseType()
Type := ( 'byte' | 'short' | 'char' | 'int' | 'long' | 'float' | 'double' | 'boolean' | ReferenceType ) { '[' ']' }Parser.parseVoidOrType()
VoidOrType := 'void' | TypeJava.AmbiguousName.toType()
Java.Atom.toType()
Java.Type.toType()
final Java.Type
Java.Atom.toTypeOrCompileException()
private Java.Type
UnitCompiler.toTypeOrCompileException
(Java.Atom a) Methods in org.codehaus.janino with parameters of type Java.TypeModifier and TypeMethodDescriptionprivate IClass.IField
UnitCompiler.compileField
(Java.TypeDeclaration declaringType, Java.Annotation[] annotations, Access access, boolean statiC, boolean finaL, Java.Type type, int brackets, String name, Java.ArrayInitializerOrRvalue initializer) Compiles one variable declarator into anIClass.IField
.private IClass
UnitCompiler.getRawType
(Java.Type t) private IType
private IType[]
Parser.parseFormalParameterListRest
(Java.Type firstParameterType) FormalParameterListRest := Identifier { ',' FormalParameter }Parser.parseFormalParameterRest
(Java.Modifier[] modifiers, Java.Type type, boolean[] hasEllipsis) FormalParameterRest := [ '.' '.' '.' ] Identifier BracketsOptParser.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) Invoked byJava.Atom.accept(Visitor.AtomVisitor)
.Constructors in org.codehaus.janino with parameters of type Java.TypeModifierConstructorDescriptionAbstractAnnotation
(Java.Type type) AnonymousClassDeclaration
(Location location, Java.Type baseType) 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
Fields in org.codehaus.janino.util with type parameters of type Java.TypeModifier and TypeFieldDescriptionprivate final Visitor.TypeVisitor
<Java.Type, CompileException> DeepCopier.typeCopier
Methods in org.codehaus.janino.util that return Java.TypeModifier and TypeMethodDescriptionDeepCopier.copyOptionalType
(Java.Type subject) DeepCopier.copyPrimitiveType
(Java.PrimitiveType bt) DeepCopier.copyRvalueMemberType
(Java.RvalueMemberType subject) DeepCopier.copySimpleType
(Java.SimpleType st) Methods in org.codehaus.janino.util with parameters of type Java.TypeModifier and TypeMethodDescriptionDeepCopier.copyOptionalType
(Java.Type subject) void
AbstractTraverser.traverseType
(Java.Type t) void
Traverser.traverseType
(Java.Type t)