congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FernflowerDecompilerOperation.perform
Code IndexAdd Tabnine to your IDE (free)

How to use
perform
method
in
org.jboss.windup.rules.apps.java.decompiler.FernflowerDecompilerOperation

Best Java code snippets using org.jboss.windup.rules.apps.java.decompiler.FernflowerDecompilerOperation.perform (Showing top 4 results out of 315)

origin: windup/windup

@Override
public void perform(GraphRewrite event, EvaluationContext context)
{
  switch (getDecompilerType())
  {
  case FERNFLOWER:
    new FernflowerDecompilerOperation().perform(event, context);
    break;
  case PROCYON:
    new ProcyonDecompilerOperation().perform(event, context);
    break;
  default:
    throw new WindupException("Failed to select decompiler due to unrecognized type: " + getDecompilerType());
  }
}
origin: org.jboss.windup.rules.apps/windup-rules-java-api

@Override
public void perform(GraphRewrite event, EvaluationContext context)
{
  switch (getDecompilerType())
  {
  case FERNFLOWER:
    new FernflowerDecompilerOperation().perform(event, context);
    break;
  case PROCYON:
    new ProcyonDecompilerOperation().perform(event, context);
    break;
  default:
    throw new WindupException("Failed to select decompiler due to unrecognized type: " + getDecompilerType());
  }
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

private void markAsReportReportable(GraphRewrite event, EvaluationContext context, JavaClassModel reference)
{
  AbstractJavaSourceModel originalSource = reference.getOriginalSource();
  JavaSourceFileModel decompiledSource = reference.getDecompiledSource();
  if (originalSource == null && decompiledSource == null && reference.getClassFile() != null
        && reference.getClassFile() instanceof JavaClassFileModel)
  {
    JavaClassFileModel javaClassFileModel = (JavaClassFileModel) reference.getClassFile();
    javaClassFileModel.setSkipDecompilation(false);
    // try to decompile it
    FernflowerDecompilerOperation decompilerOperation = new FernflowerDecompilerOperation();
    decompilerOperation.setFilesToDecompile(Collections.singletonList(javaClassFileModel));
    decompilerOperation.perform(event, context);
    // Commit to ensure that we are using the latest data (otherwise data from other threads may not
    // be visible).
    event.getGraphContext().commit();
    if (reference.getDecompiledSource() != null)
    {
      reference.getDecompiledSource().setGenerateSourceReport(true);
    }
  }
  if (originalSource != null)
    originalSource.setGenerateSourceReport(true);
  if (decompiledSource != null)
    decompiledSource.setGenerateSourceReport(true);
}
origin: windup/windup

private void markAsReportReportable(GraphRewrite event, EvaluationContext context, JavaClassModel reference)
{
  AbstractJavaSourceModel originalSource = reference.getOriginalSource();
  JavaSourceFileModel decompiledSource = reference.getDecompiledSource();
  if (originalSource == null && decompiledSource == null && reference.getClassFile() != null
        && reference.getClassFile() instanceof JavaClassFileModel)
  {
    JavaClassFileModel javaClassFileModel = (JavaClassFileModel) reference.getClassFile();
    javaClassFileModel.setSkipDecompilation(false);
    // try to decompile it
    FernflowerDecompilerOperation decompilerOperation = new FernflowerDecompilerOperation();
    decompilerOperation.setFilesToDecompile(Collections.singletonList(javaClassFileModel));
    decompilerOperation.perform(event, context);
    // Commit to ensure that we are using the latest data (otherwise data from other threads may not
    // be visible).
    event.getGraphContext().commit();
    if (reference.getDecompiledSource() != null)
    {
      reference.getDecompiledSource().setGenerateSourceReport(true);
    }
  }
  if (originalSource != null)
    originalSource.setGenerateSourceReport(true);
  if (decompiledSource != null)
    decompiledSource.setGenerateSourceReport(true);
}
org.jboss.windup.rules.apps.java.decompilerFernflowerDecompilerOperationperform

Popular methods of FernflowerDecompilerOperation

  • <init>
    Let the variable name to be set by the current Iteration.
  • getFilesToDecompile
  • setFilesToDecompile
  • setupClassToJavaConnections

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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