当前位置: 首页>>代码示例>>Java>>正文


Java SelectorUtils.matchPath方法代码示例

本文整理汇总了Java中org.codehaus.plexus.util.SelectorUtils.matchPath方法的典型用法代码示例。如果您正苦于以下问题:Java SelectorUtils.matchPath方法的具体用法?Java SelectorUtils.matchPath怎么用?Java SelectorUtils.matchPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.codehaus.plexus.util.SelectorUtils的用法示例。


在下文中一共展示了SelectorUtils.matchPath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isSelected

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
public boolean isSelected( JavaClass javaClass )
{
    boolean result = false;
    if ( alwaysTrue )
    {
        result = true;
    }
    else
    {
        String path = javaClass.getClassName().replace( '.', '/' );
        for ( int i = 0; i < includes.length && !result; i++ )
        {
            result = SelectorUtils.matchPath( includes[i], path );
        }

        if ( excludes != null )
        {
            for ( int i = 0; i < excludes.length && result; i++ )
            {
                result = !SelectorUtils.matchPath( excludes[i], path );
            }
        }
    }

    return result;
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:27,代码来源:ClirrClassFilter.java

示例2: matches6004

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * field type changed
 */
private boolean matches6004( ApiDifference apiDiff )
{
    throwIfMissing( true, false, true, true );

    if ( !SelectorUtils.matchPath( field, apiDiff.getAffectedField() ) )
    {
        return false;
    }

    String[] args = getArgs( apiDiff );
    String diffFrom = args[0];
    String diffTo = args[1];

    return SelectorUtils.matchPath( from, diffFrom ) && SelectorUtils.matchPath( to, diffTo );
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:19,代码来源:Difference.java

示例3: isIncluded

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
private boolean isIncluded( String path )
{
    if ( includes != null && !includes.isEmpty() )
    {
        for ( String include : includes )
        {
            if ( SelectorUtils.matchPath( include, path, true ) )
            {
                return true;
            }
        }
        return false;
    }
    return true;
}
 
开发者ID:javiersigler,项目名称:apache-maven-shade-plugin,代码行数:16,代码来源:SimpleRelocator.java

示例4: isExcluded

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
private boolean isExcluded( String path )
{
    if ( excludes != null && !excludes.isEmpty() )
    {
        for ( String exclude : excludes )
        {
            if ( SelectorUtils.matchPath( exclude, path, true ) )
            {
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:javiersigler,项目名称:apache-maven-shade-plugin,代码行数:15,代码来源:SimpleRelocator.java

示例5: matchPaths

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
private boolean matchPaths( Set<String> patterns, String classFile )
{
    for ( String pattern : patterns )
    {

        if ( SelectorUtils.matchPath( pattern, classFile ) )
        {
            return true;
        }
    }

    return false;
}
 
开发者ID:javiersigler,项目名称:apache-maven-shade-plugin,代码行数:14,代码来源:SimpleFilter.java

示例6: isExcluded

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
private boolean isExcluded(String path)
{
  if (excludes != null && !excludes.isEmpty())
  {
    for (String exclude : excludes)
    {
      if (SelectorUtils.matchPath(exclude, path, true))
      {
        return true;
      }
    }
  }
  return false;
}
 
开发者ID:immutables,项目名称:maven-shade-plugin,代码行数:15,代码来源:SimpleRelocator.java

示例7: matches4000

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Added interface to the set of implemented interfaces
 */
private boolean matches4000( ApiDifference apiDiff )
{
    throwIfMissing( false, false, false, true );

    String newIface = getArgs( apiDiff )[0];
    newIface = newIface.replace( '.', '/' );

    return SelectorUtils.matchPath( to, newIface, "/", true );
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:13,代码来源:Difference.java

示例8: matches5000

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Added class to the set of superclasses
 */
private boolean matches5000( ApiDifference apiDiff )
{
    throwIfMissing( false, false, false, true );

    String newSuperclass = getArgs( apiDiff )[0];
    newSuperclass = newSuperclass.replace( '.', '/' );

    return SelectorUtils.matchPath( to, newSuperclass, "/", true );
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:13,代码来源:Difference.java

示例9: matches5001

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Removed class from the set of superclasses
 */
private boolean matches5001( ApiDifference apiDiff )
{
    throwIfMissing( false, false, false, true );

    String removedSuperclass = getArgs( apiDiff )[0];
    removedSuperclass = removedSuperclass.replace( '.', '/' );

    return SelectorUtils.matchPath( to, removedSuperclass, "/", true );
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:13,代码来源:Difference.java

示例10: isIncluded

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
private boolean isIncluded(String path)
{
  if (includes != null && !includes.isEmpty())
  {
    for (String include : includes)
    {
      if (SelectorUtils.matchPath(include, path, true))
      {
        return true;
      }
    }
    return false;
  }
  return true;
}
 
开发者ID:immutables,项目名称:maven-shade-plugin,代码行数:16,代码来源:SimpleRelocator.java

示例11: matches7006

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Method Return Type changed
 */
private boolean matches7006( ApiDifference apiDiff )
{
    throwIfMissing( false, true, false, true );

    String methodSig = removeVisibilityFromMethodSignature( apiDiff );
    if ( !SelectorUtils.matchPath( method, methodSig ) )
    {
        return false;
    }

    String newRetType = getArgs( apiDiff )[0];

    return SelectorUtils.matchPath( to, newRetType );
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:18,代码来源:Difference.java

示例12: inIncludeList

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Determines if one of the given patterns matches the given name, or if the include list is null
 * or empty the file will be included
 *
 * @param name string to match
 * @param includes list of string patterns to match on
 * @return true if the name is a match, false if not
 */
public static boolean inIncludeList(String name, String[] includes) {
    if ((includes == null) || (includes.length == 0)) {
        return true;
    }

    for (String include : includes) {
        if (SelectorUtils.matchPath(include, name, false)) {
            return true;
        }
    }

    return false;
}
 
开发者ID:kuali,项目名称:rice,代码行数:22,代码来源:ThemeBuilderUtils.java

示例13: inExcludeList

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Determines if one of the given patterns matches the given name, or if the exclude list is null
 * or empty the file will not be excluded
 *
 * @param name string to match
 * @param excludes list of string patterns to match on
 * @return true if the name is a match, false if not
 */
public static boolean inExcludeList(String name, String[] excludes) {
    if ((excludes == null) || (excludes.length == 0)) {
        return false;
    }

    for (String exclude : excludes) {
        if (SelectorUtils.matchPath(exclude, name, false)) {
            return true;
        }
    }

    return false;
}
 
开发者ID:kuali,项目名称:rice,代码行数:22,代码来源:ThemeBuilderUtils.java

示例14: getFileName

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
protected String getFileName(final String sourceFile) {
    String extension = FileUtils.extension(sourceFile);
    String[] matchingExtensionFiles = scanFor(extension);

    for (String matchingExtensionFile : matchingExtensionFiles) {
        if (SelectorUtils.matchPath("**/" + sourceFile, matchingExtensionFile, true)) {
            return matchingExtensionFile;
        }
    }

    return sourceFile;
}
 
开发者ID:trautonen,项目名称:coveralls-maven-plugin,代码行数:13,代码来源:ScanSourceLoader.java

示例15: matches7003

import org.codehaus.plexus.util.SelectorUtils; //导入方法依赖的package包/类
/**
 * Method Overide Removed
 */
private boolean matches7003( ApiDifference apiDiff )
{
    throwIfMissing( false, true, false, false );
    return SelectorUtils.matchPath( method, removeVisibilityFromMethodSignature( apiDiff ) );
}
 
开发者ID:mojohaus,项目名称:clirr-maven-plugin,代码行数:9,代码来源:Difference.java


注:本文中的org.codehaus.plexus.util.SelectorUtils.matchPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。