public class AnnotatedCodeWriter extends SimpleCodeWriter implements ICodeWriter
buf, indent, indentStrINDENT_STR, NL| Constructor and Description |
|---|
AnnotatedCodeWriter() |
AnnotatedCodeWriter(JadxArgs args) |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedCodeWriter |
add(char c) |
ICodeWriter |
add(ICodeWriter cw) |
AnnotatedCodeWriter |
add(java.lang.String str) |
protected void |
addLine() |
protected AnnotatedCodeWriter |
addLineIndent() |
AnnotatedCodeWriter |
addMultiLine(java.lang.String str) |
void |
attachAnnotation(ICodeAnnotation obj) |
void |
attachDefinition(ICodeNodeRef obj) |
void |
attachLineAnnotation(ICodeAnnotation obj) |
void |
attachSourceLine(int sourceLine) |
ICodeInfo |
finish() |
int |
getLine()
Return current line (only if metadata is supported)
|
int |
getLineStartPos()
Return start line position (only if metadata is supported)
|
java.util.Map<java.lang.Integer,ICodeAnnotation> |
getRawAnnotations() |
boolean |
isMetadataSupported() |
addIndent, decIndent, getCodeStr, getIndent, getLength, getRawBuf, incIndent, newLine, removeFirstEmptyLine, setIndent, startLine, startLine, startLine, startLineWithNum, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddIndent, decIndent, getCodeStr, getIndent, getLength, getRawBuf, incIndent, newLine, setIndent, startLine, startLine, startLine, startLineWithNumpublic AnnotatedCodeWriter()
public AnnotatedCodeWriter(JadxArgs args)
public boolean isMetadataSupported()
isMetadataSupported in interface ICodeWriterisMetadataSupported in class SimpleCodeWriterpublic AnnotatedCodeWriter addMultiLine(java.lang.String str)
addMultiLine in interface ICodeWriteraddMultiLine in class SimpleCodeWriterpublic AnnotatedCodeWriter add(java.lang.String str)
add in interface ICodeWriteradd in class SimpleCodeWriterpublic AnnotatedCodeWriter add(char c)
add in interface ICodeWriteradd in class SimpleCodeWriterpublic ICodeWriter add(ICodeWriter cw)
add in interface ICodeWriteradd in class SimpleCodeWriterprotected void addLine()
addLine in class SimpleCodeWriterprotected AnnotatedCodeWriter addLineIndent()
addLineIndent in class SimpleCodeWriterpublic int getLine()
ICodeWritergetLine in interface ICodeWritergetLine in class SimpleCodeWriterpublic int getLineStartPos()
ICodeWritergetLineStartPos in interface ICodeWritergetLineStartPos in class SimpleCodeWriterpublic void attachDefinition(ICodeNodeRef obj)
attachDefinition in interface ICodeWriterattachDefinition in class SimpleCodeWriterpublic void attachAnnotation(ICodeAnnotation obj)
attachAnnotation in interface ICodeWriterattachAnnotation in class SimpleCodeWriterpublic void attachLineAnnotation(ICodeAnnotation obj)
attachLineAnnotation in interface ICodeWriterattachLineAnnotation in class SimpleCodeWriterpublic void attachSourceLine(int sourceLine)
attachSourceLine in interface ICodeWriterattachSourceLine in class SimpleCodeWriterpublic ICodeInfo finish()
finish in interface ICodeWriterfinish in class SimpleCodeWriterpublic java.util.Map<java.lang.Integer,ICodeAnnotation> getRawAnnotations()
getRawAnnotations in interface ICodeWritergetRawAnnotations in class SimpleCodeWriter