java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.android.ir.DFormattingContext |
dexdec
IR formatting context, providing an output sink and specifications for the output.
Plugin codes may want to use a formatting context to generate and customize rendering of the IR.
In most cases, the writing methods like append()
, space()
, etc. will not be
needed by plugins.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DFormattingContext()
Create a default formatting context.
| |||||||||||
DFormattingContext(IDMethodContext ctx)
Create a default formatting context.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
angle()
Convenience method to append an opening angle bracket (less-than sign) to this sink.
| ||||||||||
void |
angleClose()
Convenience method to append a closing angle bracket (greater-than sign) to this sink.
| ||||||||||
DFormattingContext |
append(String str)
Append a string to this sink.
| ||||||||||
DFormattingContext |
append(char c)
Append a character to this sink.
| ||||||||||
DFormattingContext |
append(Object o)
Append the string representation of an object to this sink.
| ||||||||||
DFormattingContext |
append(int i)
Append an integer in base 10 to this sink.
| ||||||||||
DFormattingContext |
appendFormat(String format, Object... args)
Append a formatted string to this sink.
| ||||||||||
void |
appendFormattedType(IJavaType type)
Append a type to this sink.
| ||||||||||
void |
appendFormattedTypeIf(IJavaType type)
Append a type to this sink if types are to be rendered (see
isDisplayTypes() ). | ||||||||||
void |
brace()
Convenience method to append an opening brace to this sink.
| ||||||||||
void |
braceClose()
Convenience method to append a closing brace to this sink.
| ||||||||||
void |
bracket()
Convenience method to append an opening bracket to this sink.
| ||||||||||
void |
bracketClose()
Convenience method to append a closing bracket to this sink.
| ||||||||||
IDMethodContext | getMethodContext() | ||||||||||
boolean | isDisplayCanThrow() | ||||||||||
boolean | isDisplayTypes() | ||||||||||
boolean | isUsePreferredNames() | ||||||||||
void |
paren()
Convenience method to append an opening parenthesis to this sink.
| ||||||||||
void |
parenClose()
Convenience method to append a closing parenthesis to this sink.
| ||||||||||
void | setDisplayCanThrow(boolean displayCanThrow) | ||||||||||
void | setDisplayTypes(boolean displayTypes) | ||||||||||
void | setMethodContext(IDMethodContext ctx) | ||||||||||
void | setUsePreferredNames(boolean usePreferredNames) | ||||||||||
void |
space()
Convenience method to append a space to this sink.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a default formatting context. IR types are rendered.
Create a default formatting context. IR types are rendered.
ctx | optional method context; needed to fetch pool objects (e.g. strings) or fetch effective data |
---|
Convenience method to append an opening angle bracket (less-than sign) to this sink.
Convenience method to append a closing angle bracket (greater-than sign) to this sink.
Append the string representation of an object to this sink.
o | optional (if null, the 'null' string is appended) |
---|
Append an integer in base 10 to this sink.
Append a formatted string to this sink.
format | format string |
---|---|
args | arguments for the format string |
Append a type to this sink if types are to be rendered (see isDisplayTypes()
). Else,
do nothing.
Convenience method to append an opening brace to this sink.
Convenience method to append a closing brace to this sink.
Convenience method to append an opening bracket to this sink.
Convenience method to append a closing bracket to this sink.
Convenience method to append an opening parenthesis to this sink.
Convenience method to append a closing parenthesis to this sink.
ctx | optional method context; needed to fetch pool objects (e.g. strings) or fetch effective data |
---|
Convenience method to append a space to this sink.