Package com.sun.source.tree

Examples of com.sun.source.tree.ParameterizedTypeTree


      }

      Tree returnType = methodTree.getReturnType();   // null for void method
      if (getter(methodTree) && returnType instanceof ParameterizedTypeTree) {
        assert Tree.Kind.PARAMETERIZED_TYPE == returnType.getKind();
        ParameterizedTypeTree parametrizedReturnType = (ParameterizedTypeTree) returnType;

        TypeCategory category = detectTypeCategory(parametrizedReturnType);
        if (category.isCollectionOrMap()) {
          Tree valueTypeArgument = parametrizedReturnType.getTypeArguments().get(category.getValueTypeArgumentIdx());
          final String qualifiedGenericTypeName = getQualifiedType(valueTypeArgument);

          String methodJsfName = getMethodJsfName(methodTree);
          System.out.println("FOUND " + typeNameQualified + "." + methodJsfName + ".*=" + qualifiedGenericTypeName);
          // Unqualified name:
View Full Code Here

TOP

Related Classes of com.sun.source.tree.ParameterizedTypeTree

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.