本文整理汇总了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;
}
示例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 );
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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 );
}
示例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 );
}
示例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 );
}
示例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;
}
示例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 );
}
示例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;
}
示例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;
}
示例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;
}
示例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 ) );
}