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 classRepresentation of a JLS7 10.1 "array type".static final classRepresentation of a JLS7 4.2 "primitive type", i.e a primitive type "usage", which has a location.static final classRepresentation of a JLS7 4.3 reference type.static final classRepresentation 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 classThis 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.TypeJava.AnonymousClassDeclaration.baseTypeBase class or interface.final Java.TypeJava.ArrayType.componentTypeThe (declared) type of the array's components.final Java.TypeJava.NamedClassDeclaration.extendedTypeThe type of the extended class.final Java.Type[]Java.InterfaceDeclaration.extendedTypesThe types of the interfaces that this interface extends.final Java.Type[]Java.NamedClassDeclaration.implementedTypesThe types of the implemented interfaces.final Java.TypeJava.QualifiedThisReference.qualificationThe qualification left from the "this" keyword.final Java.TypeJava.SuperclassFieldAccessExpression.qualificationThe optional qualification before ".super.fld".final Java.TypeJava.Instanceof.rhsThe type that theJava.Instanceof.lhsis checked against.final Java.TypeJava.Cast.targetTypeThe type to convert to.final Java.Type[]Java.FunctionDeclarator.thrownExceptionsThe types of the declared exceptions.final Java.TypeJava.AbstractAnnotation.typeThe type of this annotation.private Java.TypeJava.AmbiguousName.typefinal Java.TypeJava.ClassInstanceCreationReference.typeThe class type that this expression instantiates.final Java.TypeJava.ClassLiteral.typeThe type left of the ".class" suffix.final Java.TypeJava.FieldDeclaration.typeThe type of this field.final Java.TypeJava.FunctionDeclarator.FormalParameter.typeThe type of the parameter.final Java.TypeJava.FunctionDeclarator.typeThe return type of the function (VOID for constructors).final Java.TypeJava.LocalVariableDeclarationStatement.typeThe declared type of the local variable.final Java.TypeJava.NewArray.typeThe component type of the (Java.NewArray.dimExprs.length +Java.NewArray.dims)-dimensional array to instantiate.final Java.TypeJava.NewClassInstance.typeThe type to instantiate.final Java.TypeJava.TryStatement.LocalVariableDeclaratorResource.typeThe declared type of the resource variable.final Java.Type[]Java.CatchParameter.typesThe 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.TypeClassBodyEvaluator.classToType(Location location, Class<?> clazz) protected Java.TypeExpressionEvaluator.classToType(Location location, Class<?> clazz) protected Java.TypeScriptEvaluator.classToType(Location loc, Class<?> clazz) protected Java.TypeSimpleCompiler.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.TypeClassBodyEvaluator.optionalClassToType(Location location, Class<?> clazz) protected Java.TypeExpressionEvaluator.optionalClassToType(Location location, Class<?> clazz) protected Java.TypeScriptEvaluator.optionalClassToType(Location loc, Class<?> clazz) protected Java.TypeSimpleCompiler.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.TypeJava.Atom.toTypeOrCompileException()private Java.TypeUnitCompiler.toTypeOrCompileException(Java.Atom a) Methods in org.codehaus.janino with parameters of type Java.TypeModifier and TypeMethodDescriptionprivate IClass.IFieldUnitCompiler.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 IClassUnitCompiler.getRawType(Java.Type t) private ITypeprivate 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 )voidUnparser.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) protectedInterfaceDeclaration(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.typeCopierMethods 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) voidAbstractTraverser.traverseType(Java.Type t) voidTraverser.traverseType(Java.Type t)