Tabnine Logo
Watermarker.getClassWrappers
Code IndexAdd Tabnine to your IDE (free)

How to use
getClassWrappers
method
in
me.itzsomebody.radon.transformers.miscellaneous.watermarker.Watermarker

Best Java code snippets using me.itzsomebody.radon.transformers.miscellaneous.watermarker.Watermarker.getClassWrappers (Showing top 1 results out of 315)

origin: ItzSomebody/Radon

@Override
public void transform() {
  ArrayList<ClassWrapper> classWrappers = new ArrayList<>(this.getClassWrappers());
  for (int i = 0; i < 3; i++) { // Two extra injections helps with reliability of watermark to be extracted
    Stack<Character> watermark = cipheredWatermark();
    while (!watermark.isEmpty()) {
      ClassWrapper classWrapper;
      int counter = 0;
      do {
        classWrapper = classWrappers.get(RandomUtils.getRandomInt(0, classWrappers.size()));
        counter++;
        if (counter > 20)
          throw new RuntimeException("Radon couldn't find any methods to embed a watermark in after " + counter + "tries.");
      } while (classWrapper.classNode.methods.size() != 0);
      MethodNode methodNode = classWrapper.classNode.methods.get(RandomUtils.getRandomInt(0,
          classWrapper.classNode.methods.size()));
      if (hasInstructions(methodNode)) {
        methodNode.instructions.insertBefore(methodNode.instructions.getFirst(),
            createInstructions(watermark, methodNode));
      }
    }
  }
  LoggerUtils.stdOut("Successfully embedded watermark.");
}
me.itzsomebody.radon.transformers.miscellaneous.watermarkerWatermarkergetClassWrappers

Popular methods of Watermarker

  • <init>
  • getSetup
  • cipheredWatermark
  • createInstructions
  • hasInstructions

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JTextField (javax.swing)
  • Github Copilot alternatives
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