Package com.alibaba.citrus.generictype

Examples of com.alibaba.citrus.generictype.GenericDeclarationInfo


        if (buildingCache == null) {
            buildingCache = new BuildingCache();
        }

        String name = type.getName();
        GenericDeclarationInfo declaration = buildGenericDeclaration(type.getGenericDeclaration(), buildingCache);
        TypeInfo[] upperBounds = buildTypes(type.getBounds(), buildingCache);

        return new TypeVariableImpl(name, declaration, upperBounds);
    }
View Full Code Here


        return null;
    }

    /** 在context中查找类型变量对应的实际类型。 */
    static TypeInfo resolveTypeVariable(TypeVariableInfo var, GenericDeclarationInfo context, boolean includeBaseType) {
        GenericDeclarationInfo declaration = assertNotNull(var, "var").getGenericDeclaration();
        TypeInfo result = null;

        // 当前var的declaration可能是: Class,带类型参数的method,带类型参数的constructor。
        //
        // 情形1. delcaration是Class,context也是Class,则在context.
View Full Code Here

        if (buildingCache == null) {
            buildingCache = new BuildingCache();
        }

        String name = type.getName();
        GenericDeclarationInfo declaration = buildGenericDeclaration(type.getGenericDeclaration(), buildingCache);
        TypeInfo[] upperBounds = buildTypes(type.getBounds(), buildingCache);

        return new TypeVariableImpl(name, declaration, upperBounds);
    }
View Full Code Here

    /**
     * ��context�в������ͱ�����Ӧ��ʵ�����͡�
     */
    static TypeInfo resolveTypeVariable(TypeVariableInfo var, GenericDeclarationInfo context, boolean includeBaseType) {
        GenericDeclarationInfo declaration = assertNotNull(var, "var").getGenericDeclaration();
        TypeInfo result = null;

        // ��ǰvar��declaration�����ǣ� Class�������Ͳ�����method�������Ͳ�����constructor��
        //
        // ����1. delcaration��Class��contextҲ��Class������context.
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.generictype.GenericDeclarationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.