Tabnine Logo
org.jf.util
Code IndexAdd Tabnine to your IDE (free)

How to use org.jf.util

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

origin: JesusFreke/smali

  @Override
  public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write("#@");
    writer.printUnsignedLongAsHex(codeAddress & 0xFFFFFFFFL);
    return true;
  }
});
origin: JesusFreke/smali

public int getPackedSwitchBaseAddress(int packedSwitchPayloadCodeOffset) {
  return packedSwitchMap.get(packedSwitchPayloadCodeOffset, -1);
}
origin: JesusFreke/smali

public List<AnalyzedInstruction> getAnalyzedInstructions() {
  return analyzedInstructions.getValues();
}
origin: JesusFreke/smali

  protected void writeVtableIndex(IndentingWriter writer) throws IOException {
    writer.write("vtable@");
    writer.printSignedIntAsDec(((VtableIndexInstruction)instruction).getVtableIndex());
  }
}
origin: sonyxperiadev/ApkAnalyser

@Override
public void write(char[] chars) throws IOException {
  //synchronized(lock) {
    for (char chr: chars) {
      write(chr);
    }
  //}
}
origin: JesusFreke/smali

private static int getTypeSize(char type) {
  switch (type) {
    case 'J':
    case 'D':
      return 8;
    case '[':
    case 'L':
    case 'I':
    case 'F':
      return 4;
    case 'C':
    case 'S':
      return 2;
    case 'B':
    case 'Z':
      return 1;
  }
  throw new ExceptionWithContext("Invalid type: %s", type);
}
origin: CalebFenton/simplify

private static void usage(Options options) {
  HelpFormatter formatter = new HelpFormatter();
  int consoleWidth = ConsoleUtil.getConsoleWidth();
  if (consoleWidth <= 0) {
    consoleWidth = 80;
  }
  formatter.setWidth(consoleWidth);
  formatter.printHelp("java -jar simplify.jar <input> [options]", "deobfuscates a dalvik executable", options, "");
}
origin: sonyxperiadev/ApkAnalyser

public ClassFileNameHandler(File path, String fileExtension) {
  this.top = new PackageNameEntry(path);
  this.fileExtension = fileExtension;
  this.modifyWindowsReservedFilenames = testForWindowsReservedFileNames(path);
}
origin: JesusFreke/smali

@Override
public int getRegisterC() {
  return NibbleUtils.extractLowUnsignedNibble(dexFile.readUbyte(instructionStart + 4));
}
origin: sonyxperiadev/ApkAnalyser

  public FileSystemEntry makeVirtual(File parent) {
    return new VirtualGroupEntry(this, parent);
  }
}
origin: JesusFreke/smali

  @Override
  public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write("#@");
    writer.printUnsignedLongAsHex(codeAddress & 0xFFFFFFFFL);
    return true;
  }
});
origin: JesusFreke/smali

protected void writeInlineIndex(IndentingWriter writer) throws IOException {
  writer.write("inline@");
  writer.printSignedIntAsDec(((InlineIndexInstruction)instruction).getInlineIndex());
}
origin: sonyxperiadev/ApkAnalyser

@Override
public void write(char[] chars, int start, int len) throws IOException {
  //synchronized(lock) {
    len = start+len;
    while (start < len) {
      write(chars[start++]);
    }
  //}
}
origin: JesusFreke/smali

public int getSparseSwitchBaseAddress(int sparseSwitchPayloadCodeOffset) {
  return sparseSwitchMap.get(sparseSwitchPayloadCodeOffset, -1);
}
origin: JesusFreke/smali

@Override
public int getRegisterE() {
  return NibbleUtils.extractLowUnsignedNibble(dexFile.readUbyte(instructionStart + 5));
}
origin: JesusFreke/smali

public List<Instruction> getInstructions() {
  return Lists.transform(analyzedInstructions.getValues(), new Function<AnalyzedInstruction, Instruction>() {
    @Nullable @Override public Instruction apply(@Nullable AnalyzedInstruction input) {
      if (input == null) {
        return null;
      }
      return input.instruction;
    }
  });
}
origin: JesusFreke/smali

protected void writeFieldOffset(IndentingWriter writer) throws IOException {
  writer.write("field@0x");
  writer.printUnsignedLongAsHex(((FieldOffsetInstruction)instruction).getFieldOffset());
}
origin: sonyxperiadev/ApkAnalyser

@Override
public Writer append(char c) throws IOException {
  write(c);
  return this;
}
origin: JesusFreke/smali

@Override
public int getRegisterG() {
  return NibbleUtils.extractLowUnsignedNibble(dexFile.readUbyte(instructionStart + 1));
}
origin: JesusFreke/smali

private static void writeAccessFlags(IndentingWriter writer, int accessFlags)
    throws IOException {
  for (AccessFlags accessFlag: AccessFlags.getAccessFlagsForMethod(accessFlags)) {
    writer.write(accessFlag.toString());
    writer.write(' ');
  }
}
org.jf.util

Most used classes

  • IndentingWriter
  • ExceptionWithContext
    Exception which carries around structured context.
  • ConsoleUtil
  • ClassFileNameHandler
  • NumberUtils
  • SparseArray,
  • SparseIntArray,
  • StringUtils,
  • StringWrapper,
  • Command,
  • ExtendedCommands,
  • ExtendedParameter,
  • ExtendedParameters,
  • HelpFormatter,
  • ImmutableConverter,
  • ImmutableUtils,
  • LinearSearch,
  • WrappedIndentingWriter,
  • AbstractForwardSequentialList$1
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