Package jadx.api

Interface ICodeWriter

All Known Implementing Classes:
AnnotatedCodeWriter, SimpleCodeWriter

public interface ICodeWriter
  • Method Details

    • isMetadataSupported

      boolean isMetadataSupported()
    • startLine

      ICodeWriter startLine()
    • startLine

      ICodeWriter startLine(char c)
    • startLine

      ICodeWriter startLine(String str)
    • startLineWithNum

      ICodeWriter startLineWithNum(int sourceLine)
    • addMultiLine

      ICodeWriter addMultiLine(String str)
    • add

      ICodeWriter add(String str)
    • add

      ICodeWriter add(char c)
    • add

    • newLine

      ICodeWriter newLine()
    • addIndent

      ICodeWriter addIndent()
    • incIndent

      void incIndent()
    • decIndent

      void decIndent()
    • getIndent

      int getIndent()
    • setIndent

      void setIndent(int indent)
    • getLine

      int getLine()
      Return current line (only if metadata is supported)
    • getLineStartPos

      int getLineStartPos()
      Return start line position (only if metadata is supported)
    • attachDefinition

      void attachDefinition(ICodeNodeRef obj)
    • attachAnnotation

      void attachAnnotation(ICodeAnnotation obj)
    • attachLineAnnotation

      void attachLineAnnotation(ICodeAnnotation obj)
    • attachSourceLine

      void attachSourceLine(int sourceLine)
    • finish

      ICodeInfo finish()
    • getCodeStr

      String getCodeStr()
    • getLength

      int getLength()
    • getRawBuf

      StringBuilder getRawBuf()
    • getRawAnnotations

      @Internal Map<Integer,ICodeAnnotation> getRawAnnotations()