Examples of StringPattern


Examples of org.codehaus.janino.util.StringPattern

     */
    public static void main(String[] args) {
        int idx = 0;

        StringPattern[] directoryNamePatterns = StringPattern.PATTERNS_ALL;
        StringPattern[] fileNamePatterns = new StringPattern[] { new StringPattern("*.java") };
        File[]          classPath = new File[] { new File(".") };
        File[]          optionalExtDirs = null;
        File[]          optionalBootClassPath = null;
        String          optionalCharacterEncoding = null;
        boolean         verbose = false;
View Full Code Here

Examples of org.codehaus.janino.util.StringPattern

    public interface MethodInvocationAction {
        void execute(UnitCompiler uc, Java.Invocation invocation, IClass.IMethod method) throws Exception;
    }

    static boolean typeMatches(String pattern, String typeName) {
        return new StringPattern(pattern).matches(
            pattern.indexOf('.') == -1
            ? typeName.substring(typeName.lastIndexOf('.') + 1)
            : typeName
        );
    }
View Full Code Here

Examples of org.codehaus.janino.util.StringPattern

                if (!typeMatches(
                    this.optionalClassNamePattern,
                    Descriptor.toClassName(method.getDeclaringIClass().getDescriptor())
                )) return;
            }
            if (!new StringPattern(this.methodNamePattern).matches(method.getName())) return;
            IClass[] fpts = method.getParameterTypes();
            if (this.optionalArgumentTypeNamePatterns != null) {
                String[] atnps = this.optionalArgumentTypeNamePatterns;
                if (atnps.length != fpts.length) return;
                for (int i = 0; i < atnps.length; ++i) {
                    if (!new StringPattern(atnps[i]).matches(Descriptor.toClassName(fpts[i].getDescriptor())));
                }
            }
            for (Iterator it = this.predicates.iterator(); it.hasNext();) {
                MethodInvocationPredicate mip = (MethodInvocationPredicate) it.next();
                try {
View Full Code Here

Examples of org.eobjects.analyzer.reference.StringPattern

  }

  public boolean isLoaded() {
    String[] stringPatternNames = _referenceDataCatalog.getStringPatternNames();
    for (String name : stringPatternNames) {
      StringPattern stringPattern = _referenceDataCatalog.getStringPattern(name);
      if (stringPattern instanceof RegexSwapStringPattern) {
        return true;
      }
    }
    return false;
View Full Code Here

Examples of org.eobjects.analyzer.reference.StringPattern

    final String[] stringPatternNames = referenceDataCatalog.getStringPatternNames();
    for (String name : stringPatternNames) {
      _comboBox.addItem(referenceDataCatalog.getStringPattern(name));
    }

    StringPattern currentValue = (StringPattern) beanJobBuilder.getConfiguredProperty(propertyDescriptor);
    _comboBox.setSelectedItem(currentValue);

    _comboBox.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of org.eobjects.analyzer.reference.StringPattern

    Arrays.sort(names);

    final Icon icon = imageManager.getImageIcon("images/model/stringpattern.png");

    for (final String name : names) {
      final StringPattern stringPattern = _catalog.getStringPattern(name);

      final DCLabel stringPatternLabel = DCLabel.dark("<html><b>" + name + "</b><br/>" + getDescription(stringPattern)
          + "</html>");
      stringPatternLabel.setIcon(icon);
View Full Code Here

Examples of org.pf.text.StringPattern

   *
   * @param pattern The pattern string containing  optional wildcards ( '*', '?' )
   */
  public void addPattern( String pattern )
  {
    StringPattern stringPattern    = null ;
   
    stringPattern = new StringPattern( pattern, false ) ;
    this.getStringPatterns().add( stringPattern ) ;
  } // addPattern()
View Full Code Here

Examples of org.pf.text.StringPattern

   * @param pattern The pattern string containing  optional wildcards ( '*', '?' )
   * @param digitWildcard The character that will be treated as wildcard for digits ('0'-'9')
   */
  public void addPattern( String pattern, char digitWildcard )
  {
    StringPattern stringPattern    = null ;
   
    stringPattern = new StringPattern( pattern, false, digitWildcard ) ;
    this.getStringPatterns().add( stringPattern ) ;
  } // addPattern()
View Full Code Here

Examples of org.pf.text.StringPattern

   * @param pattern The pattern string containing  optional wildcards ( '*', '?' )
   * @param ignoreCase If true, all character comparisons are ignoring uppercase/lowercase
   */
  public void addPattern( String pattern, boolean ignoreCase )
  {
    StringPattern stringPattern    = null ;
   
    stringPattern = new StringPattern( pattern, ignoreCase ) ;
    this.getStringPatterns().add( stringPattern ) ;
  } // addPattern()
View Full Code Here

Examples of org.pf.text.StringPattern

   * @param ignoreCase If true, all character comparisons are ignoring uppercase/lowercase
   * @param digitWildcard The character that will be treated as wildcard for digits ('0'-'9')
   */
  public void addPattern( String pattern, boolean ignoreCase, char digitWildcard )
  {
    StringPattern stringPattern    = null ;
   
    stringPattern = new StringPattern( pattern, ignoreCase, digitWildcard ) ;
    this.getStringPatterns().add( stringPattern ) ;
  } // addPattern()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.