congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.jboss.windup.util
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.windup.util

Best Java code snippets using org.jboss.windup.util (Showing top 20 results out of 315)

origin: org.jboss.windup.utils/windup-utils

/**
 * Attempts to convert a path name (possibly a path within an archive) to a package name.
 */
public static String pathToPackageName(String relativePath)
{
  String qualifiedName = classFilePathToClassname(relativePath);
  return ClassNameUtil.getPackageName(qualifiedName);
}
origin: windup/windup

public PackageFrequencyTrie addClass(String qualifiedName)
{
  String packageName = ClassNameUtil.getPackageName(qualifiedName);
  PackageFrequencyTrie subTrie = getSubTrie(packageName);
  subTrie.classCount++;
  return this;
}
origin: org.jboss.windup.utils/utils

public static <T> T performBenchmarked(String key, Task<T> operation)
{
  ExecutionStatistics instance = ExecutionStatistics.get();
  instance.begin(key);
  try
  {
    return operation.execute();
  }
  finally
  {
    instance.end(key);
  }
}
origin: org.jboss.windup.rules.apps/windup-rules-java-api

@Override
public void decompilationFailed(List<String> inputPath, String message)
{
  progressEstimate.addWork(1);
}
origin: org.jboss.windup.utils/windup-utils

/**
 * The path $USER_HOME/cache
 */
public static Path getUserCacheDir()
{
  return getUserSubdirectory(CACHE_DIRECTORY_NAME);
}
origin: org.jboss.windup.utils/windup-utils

/**
 * The path $WINDUP_HOME/addons
 */
public static Path getWindupAddonsDir()
{
  return getWindupSubdirectory(ADDONS_DIRECTORY_NAME);
}
origin: org.jboss.windup.utils/utils

/**
 * The path $USER_HOME/ignore
 */
public static Path getUserIgnoreDir()
{
  return getUserSubdirectory("ignore");
}
origin: org.jboss.windup.utils/utils

/**
 * The path $WINDUP_HOME/ignore
 */
public static Path getWindupIgnoreDir()
{
  return getWindupSubdirectory("ignore");
}
origin: org.jboss.windup.utils/utils

/**
* Discover if a Class <b>c</b> has been annotated with <b>type</b>. This also discovers annotations defined through
* a @{@link Stereotype}.
* 
* @param c The class to inspect.
* @param type The targeted annotation class
* @return True if annotation is present either on class, false if the annotation is not present.
*/
public static boolean isAnnotationPresent(final Class<?> c, final Class<? extends Annotation> type)
{
 return getAnnotation(c, type) != null;
}
origin: org.jboss.windup/windup-engine

public JadretroDecompilerAdapter() {
  LogController.LoggingAdapter.tieSystemOutAndErrToLog();
  
  
  if(SystemUtils.IS_OS_WINDOWS) {
    APP_NAME = "jad.exe";
  }
  else {
    APP_NAME = "jad";
  }
}
origin: org.jboss.windup.utils/windup-utils

public static <T> T performBenchmarked(String key, Task<T> operation)
{
  ExecutionStatistics instance = ExecutionStatistics.get();
  instance.begin(key);
  try
  {
    return operation.execute();
  }
  finally
  {
    instance.end(key);
  }
}
origin: windup/windup

/**
 * Attempts to convert a path name (possibly a path within an archive) to a package name.
 */
public static String pathToPackageName(String relativePath)
{
  String qualifiedName = classFilePathToClassname(relativePath);
  return ClassNameUtil.getPackageName(qualifiedName);
}
origin: org.jboss.windup.utils/windup-utils

public PackageFrequencyTrie addClass(String qualifiedName)
{
  String packageName = ClassNameUtil.getPackageName(qualifiedName);
  PackageFrequencyTrie subTrie = getSubTrie(packageName);
  subTrie.classCount++;
  return this;
}
origin: org.jboss.windup.utils/windup-utils

/**
 * The path $USER_HOME/ignore
 */
public static Path getUserIgnoreDir()
{
  return getUserSubdirectory(IGNORE_DIRECTORY_NAME);
}
origin: org.jboss.windup.utils/windup-utils

/**
 * The path $WINDUP_HOME/cache
 */
public static Path getWindupCacheDir()
{
  return getWindupSubdirectory(CACHE_DIRECTORY_NAME);
}
origin: org.jboss.windup.utils/utils

/**
 * The path $USER_HOME/rules
 */
public static Path getUserRulesDir()
{
  return getUserSubdirectory("rules");
}
origin: org.jboss.windup.utils/utils

/**
 * The path $WINDUP_HOME/cache
 */
public static Path getWindupCacheDir()
{
  return getWindupSubdirectory("cache");
}
origin: windup/windup

public static <T> T performBenchmarked(String key, Task<T> operation)
{
  ExecutionStatistics instance = ExecutionStatistics.get();
  instance.begin(key);
  try
  {
    return operation.execute();
  }
  finally
  {
    instance.end(key);
  }
}
origin: windup/windup

/**
 * The path $USER_HOME/rules
 */
public static Path getUserRulesDir()
{
  return getUserSubdirectory(RULES_DIRECTORY_NAME);
}
origin: windup/windup

/**
 * The path $WINDUP_HOME/addons
 */
public static Path getWindupAddonsDir()
{
  return getWindupSubdirectory(ADDONS_DIRECTORY_NAME);
}
org.jboss.windup.util

Most used classes

  • WindupException
    Root Windup exception to inherit other Windup-specific exceptions from.
  • PathUtil
    Provides useful methods for manipulating filenames (eg, removing illegal chars from files).
  • ExecutionStatistics
    ExecutionStatistics provides a simple system for storing the time taken to perform operations. Ex
  • XmlUtil
    Contains utility methods for interacting with XML files.
  • ZipUtil
  • FurnaceClasspathScanner,
  • WindupStopException,
  • FileSuffixPredicate,
  • NamespaceEntry,
  • FileExtensionFilter,
  • LocationAwareContentHandler$Doctype,
  • LocationAwareXmlReader,
  • NamespaceMapContext,
  • Checks,
  • PackageFrequencyTrie,
  • ServiceLogger,
  • WindupPathUtil,
  • WindupMultiStringException,
  • WindupExecutors
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now