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 classJava.ArrayTypeRepresentation of a JLS7 10.1 "array type".static classJava.PrimitiveTypeRepresentation of a JLS7 4.2 "primitive type", i.e a primitive type "usage", which has a location.static classJava.ReferenceTypeRepresentation of a JLS7 4.3 reference type.static classJava.RvalueMemberTypeRepresentation 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 classJava.SimpleTypeThis 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 Java.TypeJava.AnonymousClassDeclaration. baseTypeBase class or interface.Java.TypeJava.ArrayType. componentTypeThe (declared) type of the array's components.Java.TypeJava.NamedClassDeclaration. extendedTypeThe type of the extended class.Java.Type[]Java.InterfaceDeclaration. extendedTypesThe types of the interfaces that this interface extends.Java.Type[]Java.NamedClassDeclaration. implementedTypesThe types of the implemented interfaces.Java.TypeJava.QualifiedThisReference. qualificationThe qualification left from the "this" keyword.Java.TypeJava.SuperclassFieldAccessExpression. qualificationThe optional qualification before ".super.fld".Java.TypeJava.Instanceof. rhsThe type that theJava.Instanceof.lhsis checked against.Java.TypeJava.Cast. targetTypeThe type to convert to.Java.Type[]Java.FunctionDeclarator. thrownExceptionsThe types of the declared exceptions.Java.TypeJava.AbstractAnnotation. typeThe type of this annotation.private Java.TypeJava.AmbiguousName. typeJava.TypeJava.ClassInstanceCreationReference. typeThe class type that this expression instantiates.Java.TypeJava.ClassLiteral. typeThe type left of the ".class" suffix.Java.TypeJava.FieldDeclaration. typeThe type of this field.Java.TypeJava.FunctionDeclarator.FormalParameter. typeThe type of the parameter.Java.TypeJava.FunctionDeclarator. typeThe return type of the function (VOID for constructors).Java.TypeJava.LocalVariableDeclarationStatement. typeThe declared type of the local variable.Java.TypeJava.NewArray. typeThe component type of the (Java.NewArray.dimExprs.length +Java.NewArray.dims)-dimensional array to instantiate.Java.TypeJava.NewClassInstance. typeThe type to instantiate.Java.TypeJava.TryStatement.LocalVariableDeclaratorResource. typeThe declared type of the resource variable.Java.Type[]Java.CatchParameter. typesThe types of the parameter.Methods in org.codehaus.janino that return Java.Type Modifier and Type Method Description Java.Type[]ClassBodyEvaluator. classesToTypes(Location location, java.lang.Class<?>[] classes)protected Java.Type[]ExpressionEvaluator. classesToTypes(Location location, java.lang.Class<?>... classes)Converts an array ofClasses into an array ofJava.Types.protected Java.Type[]ScriptEvaluator. classesToTypes(Location location, java.lang.Class<?>[] classes)protected Java.Type[]SimpleCompiler. classesToTypes(Location location, java.lang.Class<?>[] classes)Converts an array ofClasses into an array ofJava.Types.protected Java.TypeClassBodyEvaluator. classToType(Location location, java.lang.Class<?> clazz)protected Java.TypeExpressionEvaluator. classToType(Location location, java.lang.Class<?> clazz)Wraps a reflectionClassin aJava.Typeobject.protected Java.TypeScriptEvaluator. classToType(Location loc, java.lang.Class<?> clazz)protected Java.TypeSimpleCompiler. classToType(Location location, java.lang.Class<?> clazz)Wraps a reflectionClassin aJava.Typeobject.Java.Type[]Java.EnumDeclaration. getImplementedTypes()Java.Type[]Java.MemberEnumDeclaration. getImplementedTypes()Java.Type[]Java.PackageMemberEnumDeclaration. getImplementedTypes()Java.TypeJava.Annotation. getType()Java.TypeJava.MarkerAnnotation. getType()Java.TypeJava.NormalAnnotation. getType()Java.TypeJava.SingleElementAnnotation. getType()protected Java.TypeClassBodyEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)protected Java.TypeExpressionEvaluator. optionalClassToType(Location location, java.lang.Class<?> clazz)Wraps a reflectionClassin aJava.Typeobject.protected Java.TypeScriptEvaluator. optionalClassToType(Location loc, java.lang.Class<?> clazz)protected Java.TypeSimpleCompiler. optionalClassToType(Location location, java.lang.Class<?> clazz)Wraps a reflectionClassin aJava.Typeobject.Java.TypeParser. parseType()Type := ( 'byte' | 'short' | 'char' | 'int' | 'long' | 'float' | 'double' | 'boolean' | ReferenceType ) { '[' ']' }Java.TypeParser. parseVoidOrType()VoidOrType := 'void' | TypeJava.TypeJava.AmbiguousName. toType()Java.TypeJava.Atom. toType()Java.TypeJava.Type. toType()Java.TypeJava.Atom. toTypeOrCompileException()private Java.TypeUnitCompiler. toTypeOrCompileException(Java.Atom a)Methods in org.codehaus.janino with parameters of type Java.Type Modifier and Type Method Description private IClass.IFieldUnitCompiler. compileField(Java.TypeDeclaration declaringType, Java.Annotation[] annotations, Access access, boolean statiC, boolean finaL, Java.Type type, int brackets, java.lang.String name, Java.ArrayInitializerOrRvalue initializer)Compiles one variable declarator into anIClass.IField.private IClassUnitCompiler. getRawType(Java.Type t)private ITypeUnitCompiler. getType(Java.Type t)private IType[]UnitCompiler. getTypes(Java.Type[] types)Java.FunctionDeclarator.FormalParametersParser. parseFormalParameterListRest(Java.Type firstParameterType)FormalParameterListRest := Identifier { ',' FormalParameter }Java.FunctionDeclarator.FormalParameterParser. parseFormalParameterRest(Java.Modifier[] modifiers, Java.Type type, boolean[] hasEllipsis)FormalParameterRest := [ '.' '.' '.' ] Identifier BracketsOptJava.MethodDeclaratorParser. parseMethodDeclarationRest(java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, boolean allowDefaultClause, Parser.MethodDeclarationContext context)MethodDeclarationRest := FormalParameters { '[' ']' } [ 'throws' ReferenceTypeList ] [ 'default' expression ] ( ';' | MethodBody )voidUnparser. unparseType(Java.Type t)RVisitor.AtomVisitor. visitType(Java.Type t)Invoked byJava.Atom.accept(Visitor.AtomVisitor).Constructors in org.codehaus.janino with parameters of type Java.Type 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, java.lang.String name)ClassInstanceCreationReference(Location location, Java.Type type, Java.TypeArgument[] typeArguments)ClassLiteral(Location location, Java.Type type)ConstructorDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ConstructorInvocation constructorInvocation, java.util.List<? extends Java.BlockStatement> statements)FieldDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, Java.VariableDeclarator[] variableDeclarators)FormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, java.lang.String name)FunctionDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, java.util.List<? extends Java.BlockStatement> statements)Instanceof(Location location, Java.Rvalue lhs, Java.Type rhs)InterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)LocalClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.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, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)MemberEnumDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Type[] implementedTypes)MemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)MethodDeclarator(Location location, java.lang.String docComment, Java.Modifier[] modifiers, Java.TypeParameter[] typeParameters, Java.Type type, java.lang.String name, Java.FunctionDeclarator.FormalParameters formalParameters, Java.Type[] thrownExceptions, Java.ElementValue defaultValue, java.util.List<? extends Java.BlockStatement> statements)NamedClassDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.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, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type extendedType, Java.Type[] implementedTypes)PackageMemberEnumDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.Type[] implementedTypes)PackageMemberInterfaceDeclaration(Location location, java.lang.String docComment, Java.Modifier[] modifiers, java.lang.String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)QualifiedThisReference(Location location, Java.Type qualification)SuperclassFieldAccessExpression(Location location, Java.Type qualification, java.lang.String fieldName) -
Uses of Java.Type in org.codehaus.janino.util
Fields in org.codehaus.janino.util with type parameters of type Java.Type Modifier and Type Field Description private Visitor.TypeVisitor<Java.Type,CompileException>DeepCopier. typeCopierMethods in org.codehaus.janino.util that return Java.Type Modifier and Type Method Description Java.TypeDeepCopier. copyOptionalType(Java.Type subject)Java.TypeDeepCopier. copyPrimitiveType(Java.PrimitiveType bt)Java.TypeDeepCopier. copyRvalueMemberType(Java.RvalueMemberType subject)Java.TypeDeepCopier. copySimpleType(Java.SimpleType st)Java.TypeDeepCopier. 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.TypeDeepCopier. copyOptionalType(Java.Type subject)Java.TypeDeepCopier. copyType(Java.Type subject)Java.Type[]DeepCopier. copyTypes(Java.Type[] subject)voidAbstractTraverser. traverseType(Java.Type t)voidTraverser. traverseType(Java.Type t)
-