コード例 #1
0
ファイル: TypeDiff.java プロジェクト: pauloortins/TCC
  protected Map getExtImpMap(ASTClassOrInterfaceDeclaration coid, Class extImpClass) {
    Map map = new HashMap();
    SimpleNode list = SimpleNodeUtil.findChild(coid, extImpClass);

    if (list == null) {
      // tr.Ace.log("no list");
    } else {
      ASTClassOrInterfaceType[] types =
          (ASTClassOrInterfaceType[])
              SimpleNodeUtil.findChildren(list, ASTClassOrInterfaceType.class);

      for (int ti = 0; ti < types.length; ++ti) {
        ASTClassOrInterfaceType type = types[ti];
        String typeName = SimpleNodeUtil.toString(type);
        map.put(typeName, type);
      }
    }

    return map;
  }