Package classycle.util

Examples of classycle.util.StringPattern


  }
 
  private StringPattern createPattern(String term, int lineNumber,
                                      int tokenIndex)
  {
    StringPattern pattern = _setDefinitions.getPattern(term);
    if (pattern == null)
    {
      if (term.startsWith("[") && term.endsWith("]"))
      {
        throwException("Set " + term + " is undefined.",
View Full Code Here


    }
    if (tokens[4].equals(IN_KEY_WORD) == false)
    {
      throwException("'in' expected.", lineNumber, 4);
    }
    StringPattern pattern = createPattern(tokens[5], lineNumber, 4);
    _statements.add(new CheckCyclesStatement(pattern, size, packageCycles,
                                             _setDefinitions));
  }
View Full Code Here

    {
      throwException("No sets to check.", lineNumber, 2);
    }
    for (int i = 2; i < tokens.length; i++)
    {
      StringPattern pattern = createPattern(tokens[i], lineNumber, i);
      _statements.add(new CheckSetStatement(pattern, _setDefinitions));
    }
  }
View Full Code Here

  private void addTo(XMLBuilder builder, DependencyResult result)
  {
    builder.begin("unexpected-dependencies");
    builder.attribute(ATTRIBUTE_STATEMENT, result.getStatement());
    AtomicVertex[] paths = result.getPaths();
    StringPattern startSet = result.getStartSet();
    StringPattern finalSet = result.getFinalSet();
    DependencyPathsRenderer renderer = new DependencyPathsRenderer(paths, startSet, finalSet);
    renderer.renderGraph(createPathRenderer(builder));
    builder.end();
  }
View Full Code Here

      String patterns = argument.substring(INCLUDING_CLASSES.length());
      _pattern.appendPattern(WildCardPattern.createFromsPatterns(patterns, ","));
    } else if (argument.startsWith(EXCLUDING_CLASSES))
    {
      String patterns = argument.substring(EXCLUDING_CLASSES.length());
      StringPattern p = WildCardPattern.createFromsPatterns(patterns, ",");
      _pattern.appendPattern(new NotStringPattern(p));
    } else if (argument.startsWith(REFLECTION_PATTERN))
    {
      String patterns = argument.substring(REFLECTION_PATTERN.length());
      if (patterns.length() == 0)
View Full Code Here

    boolean directPathsOnly = DIRECTLY_INDEPENDENT_OF_KEY_WORD.equals(_dependencyType);
    boolean dependsOnly = DependencyDefinitionParser.DEPENDENT_ONLY_ON_KEY_WORD.equals(_dependencyType);
    for (int i = 0; i < _startConditions.length; i++)
    {
      VertexCondition startCondition = _startConditions[i];
      StringPattern startSet = _startSets[i];
      if (dependsOnly)
      {
        Set<AtomicVertex> invalids = new HashSet<AtomicVertex>();
        for (AtomicVertex vertex : graph)
        {
View Full Code Here

TOP

Related Classes of classycle.util.StringPattern

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.