Tabnine Logo
DexCodeVisitor.visitTryCatch
Code IndexAdd Tabnine to your IDE (free)

How to use
visitTryCatch
method
in
com.googlecode.d2j.visitors.DexCodeVisitor

Best Java code snippets using com.googlecode.d2j.visitors.DexCodeVisitor.visitTryCatch (Showing top 12 results out of 315)

origin: pxb1988/dex2jar

public void visitTryCatch(DexLabel start, DexLabel end, DexLabel handler[], String type[]) {
  if (visitor != null) {
    visitor.visitTryCatch(start, end, handler, type);
  }
}
origin: pxb1988/dex2jar

  public void accept(DexCodeVisitor cv) {
    cv.visitTryCatch(start, end, handler, type);
  }
}
origin: pxb1988/dex2jar

  labels[listSize] = labelsMap.get(handler);
dcv.visitTryCatch(labelsMap.get(start_addr), labelsMap.get(end), labels, types);
origin: pxb1988/dex2jar

  @Test
  public static void i63(DexClassVisitor cv) {
    DexMethodVisitor mv = cv.visitMethod(ACC_STATIC, new Method("La;", "b", new String[] {}, "V"));
    if (mv != null) {
      DexCodeVisitor code = mv.visitCode();
      if (code != null) {
        code.visitRegister(1);
        DexLabel L1 = new DexLabel();
        DexLabel L2 = new DexLabel();
        code.visitLabel(L1);
        code.visitFieldStmt(Op.SGET, 0, -1, new Field("La;", "f", "J"));
        code.visitLabel(L2);
        code.visitStmt0R(Op.RETURN_VOID);
        code.visitEnd();
        code.visitTryCatch(L1, L2, new DexLabel[] { L2 }, new String[] { "La;" });
      }
      mv.visitEnd();
    }
  }
}
origin: pxb1988/dex2jar

public static void a(DexClassVisitor cv) {
  DexMethodVisitor mv = cv.visitMethod(ACC_PUBLIC | ACC_STATIC, new Method("La;", "b", new String[] {}, "V"));
  DexCodeVisitor code = mv.visitCode();
  code.visitRegister(2);
  DexLabel L0 = new DexLabel();
  DexLabel L1 = new DexLabel();
  DexLabel L2 = new DexLabel();
  code.visitTryCatch(L0, L1, new DexLabel[] { L2 }, new String[] { "Lsome/Exception;" });
  code.visitLabel(L0);
  code.visitConstStmt(CONST_STRING, 0, "abc");
  code.visitLabel(L1);
  code.visitMethodStmt(INVOKE_VIRTUAL, new int[] { 0 }, new Method("Ljava/lang/String;", "toString",
      new String[] {}, "Ljava/lang/String;"));
  code.visitStmt0R(RETURN_VOID);
  code.visitLabel(L2);
  code.visitStmt1R(MOVE_EXCEPTION, 1);
  code.visitMethodStmt(INVOKE_VIRTUAL, new int[] { 1 }, new Method("Ljava/lang/String;", "toString",
      new String[] {}, "Ljava/lang/String;"));
  code.visitStmt0R(RETURN_VOID);
  code.visitEnd();
  mv.visitEnd();
}
origin: pxb1988/dex2jar

DexLabel catch_a = new DexLabel();
code.visitTryCatch(try_start, try_end, new DexLabel[] { catch_a }, new String[] { null });
code.visitRegister(2);
code.visitFieldStmt(SGET_OBJECT, v0, -1, new Field("Ljava/lang/System;", "out", "Ljava/io/PrintStream;"));
origin: pxb1988/dex2jar

DexLabel goto_2 = new DexLabel();
code.visitTryCatch(try_start_2, try_end_9, new DexLabel[] { catch_a },
    new String[] { "Ljava/io/UnsupportedEncodingException;" });
origin: pxb1988/dex2jar

DexLabel L1 = new DexLabel();
DexLabel L2 = new DexLabel();
code.visitTryCatch(L0, L1, new DexLabel[] { L2 }, new String[] { "Lorg/json/JSONException;" });
DexLabel L3 = new DexLabel();
DexLabel L4 = new DexLabel();
code.visitTryCatch(L3, L4, new DexLabel[] { L2 }, new String[] { "Lorg/json/JSONException;" });
DexLabel L5 = new DexLabel();
DexLabel L6 = new DexLabel();
code.visitTryCatch(L5, L6, new DexLabel[] { L2 }, new String[] { "Lorg/json/JSONException;" });
origin: pxb1988/dex2jar

DexLabel L1 = new DexLabel();
DexLabel L2 = new DexLabel();
code.visitTryCatch(L0, L1, new DexLabel[] { L2 }, new String[] { "Ljava/lang/NumberFormatException;" });
origin: SparkInLee/dexdiff

public void visitTryCatch(DexLabel start, DexLabel end, DexLabel handler[], String type[]) {
  if (visitor != null) {
    visitor.visitTryCatch(start, end, handler, type);
  }
}
origin: SparkInLee/dexdiff

  public void accept(DexCodeVisitor cv) {
    cv.visitTryCatch(start, end, handler, type);
  }
}
origin: SparkInLee/dexdiff

  labels[listSize] = labelsMap.get(handler);
dcv.visitTryCatch(labelsMap.get(start_addr), labelsMap.get(end), labels, types);
com.googlecode.d2j.visitorsDexCodeVisitorvisitTryCatch

Popular methods of DexCodeVisitor

  • visitEnd
  • visitConstStmt
    CONST * CONST_WIDE * CONST_STRING * CONST_CLASS
  • visitRegister
  • visitStmt0R
    Op#RETURN_VOID Op#NOP Op#BAD_OP
  • visitFieldStmt
    OP_IGETX a,b field OP_IPUTX a,b field OP_SGETX a field OP_SPUTX a field
  • visitLabel
  • visitMethodStmt
    OP_INVOKE_CUSTOM
  • visitPackedSwitchStmt
  • visitStmt1R
    OP_RETURN_X OP_THROW_X OP_MONITOR_ENTER OP_MONITOR_EXIT OP_MOVE_RESULT_X OP_MOVE_EXCEPTION_X
  • visitStmt2R
    OP_MOVE a = a X b OP_ARRAY_LENGTH a=Xb X_TO_Y
  • visitStmt3R
    OP_ADD OP_SUB OP_MUL OP_DIV OP_REM OP_AND OP_OR OP_XOR OP_SHL OP_SHR OP_USHR OP_CMPL O
  • visitTypeStmt
    OP_INSTANCE_OF OP_NEW_ARRAY OP_CHECK_CAST OP_NEW_INSTANCE
  • visitStmt3R,
  • visitTypeStmt,
  • visitDebug,
  • visitFillArrayDataStmt,
  • visitJumpStmt,
  • visitSparseSwitchStmt,
  • visitStmt2R1N,
  • visitFilledNewArrayStmt

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text 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