Package classycle.graph

Examples of classycle.graph.NameAttributes


    Vertex fragmenter = ga.getBestFragmenters()[0];
    String result = ((NameAttributes) fragmenter.getAttributes()).getName();
    //String result = component.getVertex(0).getAttributes().toString();
    if (component.getNumberOfVertices() > 1) {
      AtomicVertex vertex = component.getVertex(0);
      NameAttributes attributes = (NameAttributes) vertex.getAttributes();
      String outerClass = attributes.getName();
      int index = outerClass.indexOf('$');
      if (index > 0) {
        outerClass = outerClass.substring(0, index);
      }
      boolean isInnerClass = true;
      for (int i = 0, n = component.getNumberOfVertices(); i < n; i++) {
        attributes = (NameAttributes) component.getVertex(i).getAttributes();
        if (attributes.getName().equals(outerClass)) {
          vertex = component.getVertex(i);
        } else if (!attributes.getName().startsWith(outerClass)
            || attributes.getName().charAt(outerClass.length()) != '$') {
          isInnerClass = false;
          break;
        }
      }
      attributes = (NameAttributes) vertex.getAttributes();
      if (isInnerClass) {
        result = attributes.getName() + " and inner classes";
      } else {
        result += " et al.";
      }
    }
    return result;
View Full Code Here

TOP

Related Classes of classycle.graph.NameAttributes

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.