Package jadx.api.impl
Class AnnotatedCodeWriter
- java.lang.Object
-
- jadx.api.impl.SimpleCodeWriter
-
- jadx.api.impl.AnnotatedCodeWriter
-
- All Implemented Interfaces:
ICodeWriter
public class AnnotatedCodeWriter extends SimpleCodeWriter implements ICodeWriter
-
-
Field Summary
-
Fields inherited from class jadx.api.impl.SimpleCodeWriter
buf, indent, indentStr, insertLineNumbers, newLineStr, singleIndentStr
-
-
Constructor Summary
Constructors Constructor Description AnnotatedCodeWriter(JadxArgs args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedCodeWriteradd(char c)ICodeWriteradd(ICodeWriter cw)AnnotatedCodeWriteradd(java.lang.String str)protected voidaddLine()protected AnnotatedCodeWriteraddLineIndent()AnnotatedCodeWriteraddMultiLine(java.lang.String str)voidattachAnnotation(ICodeAnnotation obj)voidattachDefinition(ICodeNodeRef obj)voidattachLineAnnotation(ICodeAnnotation obj)voidattachSourceLine(int sourceLine)ICodeInfofinish()intgetLine()Return current line (only if metadata is supported)intgetLineStartPos()Return start line position (only if metadata is supported)java.util.Map<java.lang.Integer,ICodeAnnotation>getRawAnnotations()booleanisMetadataSupported()-
Methods inherited from class jadx.api.impl.SimpleCodeWriter
addIndent, decIndent, getCodeStr, getIndent, getLength, getRawBuf, incIndent, newLine, setIndent, startLine, startLine, startLine, startLineWithNum, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadx.api.ICodeWriter
addIndent, decIndent, getCodeStr, getIndent, getLength, getRawBuf, incIndent, newLine, setIndent, startLine, startLine, startLine, startLineWithNum
-
-
-
-
Constructor Detail
-
AnnotatedCodeWriter
public AnnotatedCodeWriter(JadxArgs args)
-
-
Method Detail
-
isMetadataSupported
public boolean isMetadataSupported()
- Specified by:
isMetadataSupportedin interfaceICodeWriter- Overrides:
isMetadataSupportedin classSimpleCodeWriter
-
addMultiLine
public AnnotatedCodeWriter addMultiLine(java.lang.String str)
- Specified by:
addMultiLinein interfaceICodeWriter- Overrides:
addMultiLinein classSimpleCodeWriter
-
add
public AnnotatedCodeWriter add(java.lang.String str)
- Specified by:
addin interfaceICodeWriter- Overrides:
addin classSimpleCodeWriter
-
add
public AnnotatedCodeWriter add(char c)
- Specified by:
addin interfaceICodeWriter- Overrides:
addin classSimpleCodeWriter
-
add
public ICodeWriter add(ICodeWriter cw)
- Specified by:
addin interfaceICodeWriter- Overrides:
addin classSimpleCodeWriter
-
addLine
protected void addLine()
- Overrides:
addLinein classSimpleCodeWriter
-
addLineIndent
protected AnnotatedCodeWriter addLineIndent()
- Overrides:
addLineIndentin classSimpleCodeWriter
-
getLine
public int getLine()
Description copied from interface:ICodeWriterReturn current line (only if metadata is supported)- Specified by:
getLinein interfaceICodeWriter- Overrides:
getLinein classSimpleCodeWriter
-
getLineStartPos
public int getLineStartPos()
Description copied from interface:ICodeWriterReturn start line position (only if metadata is supported)- Specified by:
getLineStartPosin interfaceICodeWriter- Overrides:
getLineStartPosin classSimpleCodeWriter
-
attachDefinition
public void attachDefinition(ICodeNodeRef obj)
- Specified by:
attachDefinitionin interfaceICodeWriter- Overrides:
attachDefinitionin classSimpleCodeWriter
-
attachAnnotation
public void attachAnnotation(ICodeAnnotation obj)
- Specified by:
attachAnnotationin interfaceICodeWriter- Overrides:
attachAnnotationin classSimpleCodeWriter
-
attachLineAnnotation
public void attachLineAnnotation(ICodeAnnotation obj)
- Specified by:
attachLineAnnotationin interfaceICodeWriter- Overrides:
attachLineAnnotationin classSimpleCodeWriter
-
attachSourceLine
public void attachSourceLine(int sourceLine)
- Specified by:
attachSourceLinein interfaceICodeWriter- Overrides:
attachSourceLinein classSimpleCodeWriter
-
finish
public ICodeInfo finish()
- Specified by:
finishin interfaceICodeWriter- Overrides:
finishin classSimpleCodeWriter
-
getRawAnnotations
public java.util.Map<java.lang.Integer,ICodeAnnotation> getRawAnnotations()
- Specified by:
getRawAnnotationsin interfaceICodeWriter- Overrides:
getRawAnnotationsin classSimpleCodeWriter
-
-