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

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

Best Java code snippets using org.jboss.windup.rules.apps.java.decompiler.FernflowerDecompilerOperation.setFilesToDecompile (Showing top 2 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: 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.decompilerFernflowerDecompilerOperationsetFilesToDecompile

Popular methods of FernflowerDecompilerOperation

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

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JOptionPane (javax.swing)
  • Best plugins for Eclipse
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