Class SmaliWriter

  • All Implemented Interfaces:
    jadx.api.ICodeWriter

    public class SmaliWriter
    extends jadx.api.impl.SimpleCodeWriter
    • Field Summary

      • Fields inherited from class jadx.api.impl.SimpleCodeWriter

        buf, indent, indentStr, insertLineNumbers, newLineStr, singleIndentStr
    • Constructor Summary

      Constructors 
      Constructor Description
      SmaliWriter​(jadx.core.dex.nodes.ClassNode cls)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addLine()  
      jadx.api.ICodeInfo finish()  
      jadx.core.dex.nodes.ClassNode getClassNode()  
      int getLine()  
      • Methods inherited from class jadx.api.impl.SimpleCodeWriter

        add, add, add, addIndent, addLineIndent, addMultiLine, attachAnnotation, attachDefinition, attachLineAnnotation, attachSourceLine, decIndent, getCodeStr, getIndent, getLength, getLineStartPos, getRawAnnotations, getRawBuf, incIndent, isMetadataSupported, newLine, setIndent, startLine, startLine, startLine, startLineWithNum, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SmaliWriter

        public SmaliWriter​(jadx.core.dex.nodes.ClassNode cls)
    • Method Detail

      • getClassNode

        public jadx.core.dex.nodes.ClassNode getClassNode()
      • addLine

        protected void addLine()
        Overrides:
        addLine in class jadx.api.impl.SimpleCodeWriter
      • getLine

        public int getLine()
        Specified by:
        getLine in interface jadx.api.ICodeWriter
        Overrides:
        getLine in class jadx.api.impl.SimpleCodeWriter
      • finish

        public jadx.api.ICodeInfo finish()
        Specified by:
        finish in interface jadx.api.ICodeWriter
        Overrides:
        finish in class jadx.api.impl.SimpleCodeWriter