Tabnine Logo
FernflowerDecompilerOperation
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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: windup/windup

Iterable<JavaClassFileModel> filesToDecompile = getFilesToDecompile(event.getGraphContext());
origin: org.jboss.windup.rules.apps/windup-rules-java-api

decompiledSourceFileModel.setPackageName(classModel.getPackageName());
decompiledSourceFileModel.setWindupGenerated(true);
setupClassToJavaConnections(event.getGraphContext(),inputPath,decompiledSourceFileModel);
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

Iterable<JavaClassFileModel> filesToDecompile = getFilesToDecompile(event.getGraphContext());
origin: windup/windup

decompiledSourceFileModel.setPackageName(classModel.getPackageName());
decompiledSourceFileModel.setWindupGenerated(true);
setupClassToJavaConnections(event.getGraphContext(),inputPath,decompiledSourceFileModel);
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.decompilerFernflowerDecompilerOperation

Most used methods

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Vim plugins
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