Package org.adjective.syntactic.parser.name

Examples of org.adjective.syntactic.parser.name.ParameterizedName


        final Integer[] typeParameters = method.getClassTypeParameters();
        if (ArrayUtil.isNull(typeParameters))
        {
            return type;
        }
        final ParameterizedName lastName = ArrayUtil.last(type.getParameterizedTypeName());
        TypeParameter[] classParameters = Arrays.copyOf(lastName.getParameters(), lastName.getParameters().length);
        for (int i = 0; i < typeParameters.length; i++)
        {
            final Integer classIndex = typeParameters[i];
            if (classIndex != null)
            {
                classParameters[classIndex] = new SimpleTypeParameter(TypeParameter.Kind.EXACT,
                                                                      parameters.getParameterTypes()[i]);
            }
        }

        ParameterizedName[] name = new ParameterizedName[type.getParameterizedTypeName().length];
        System.arraycopy(type.getParameterizedTypeName(), 0, name, 0, name.length - 1);
        name[name.length - 1] = new SimpleParameterizedName(lastName.getName(), classParameters);
        return new SimpleJavaType(name, type.getArrayDepth());
    }
View Full Code Here


        }
        final ParameterizedName[] inputName = forType.getParameterizedTypeName();
        final ParameterizedName[] outputName = new ParameterizedName[inputName.length];
        for (int i = 0; i < inputName.length; i++)
        {
            ParameterizedName parameterizedName = inputName[i];
            final TypeParameter[] inputParameters = parameterizedName.getParameters();
            if (inputParameters.length == 0)
            {
                outputName[i] = parameterizedName;
                continue;
            }
View Full Code Here

TOP

Related Classes of org.adjective.syntactic.parser.name.ParameterizedName

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.