Interface IDynamicContentManager
public interface IDynamicContentManager
The content manager allows AST rendering facility to retrieve lower-level native information.
-
Method Summary
Modifier and TypeMethodDescriptiongetComment(ICodeCoordinates coordinates) Retrieve the end-of-line comment at coordinates.longgetLabelItemId(ICodeCoordinates coordinates) Retrieve the label item id at coordinates.getLabelName(ICodeCoordinates coordinates) Retrieve a label name at coordinates.longgetLocalVariableItemId(int methodIndex, long varOffset) Retrieve a local variable item id.getLocalVariableName(int methodIndex, long varOffset) Retrieve a local variable name.longgetMethodItemId(ICodeCoordinates coordinates) Retrieve the method item id at coordinates.getMethodName(ICodeCoordinates coordinates) Retrieve a method name at coordinates.getNativeInstructionFormat(long nativeAddress) Format the native instruction at an address.getNativeString(int itemIndex) Retrieve a native string item by index.longgetObjectItemId(Object object) Retrieve the item id associated with an object.getPackageOfMethod(int methodIndex) Retrieve the package containing a method.getParamName(int methodIndex, int paramIndex) Retrieve a parameter name.getPotentialDataAsString(long nativeAddress) Retrieve potential data at an address as text.getPreComment(ICodeCoordinates coordinates) Retrieve the pre-comment at coordinates.longgetStructureFieldItemId(String typeSignature, int fieldOffset) Retrieve a structure field item id.getStructureFieldName(String typeSignature, int fieldOffset) Retrieve a structure field name.longgetSyntheticIdentifierItemId(int methodIndex, int varId) Retrieve an item id for a synthetic identifier.longgetTypeItemId(String typeSignature) Retrieve a type item id by type signature.getTypeSignature(String typeSignature) Retrieve a type signature.voidsetLabelName(ICodeCoordinates coordinates, String name) Set a label name at coordinates.voidsetLocalVariableName(int methodIndex, long varOffset, String name) Set a local variable name.booleansetParamName(int methodIndex, int paramIndex, String name) Set a parameter name.
-
Method Details
-
getObjectItemId
Retrieve the item id associated with an object.- Parameters:
object- object to resolve- Returns:
- item id, or 0 if unavailable
-
getComment
Retrieve the end-of-line comment at coordinates.- Parameters:
coordinates- source coordinates- Returns:
- comment text, or null if none exists
-
getPreComment
Retrieve the pre-comment at coordinates.- Parameters:
coordinates- source coordinates- Returns:
- comment text, or null if none exists
-
getMethodName
Retrieve a method name at coordinates.- Parameters:
coordinates- source coordinates- Returns:
- method name, or null if unavailable
-
getMethodItemId
Retrieve the method item id at coordinates.- Parameters:
coordinates- source coordinates- Returns:
- method item id, or 0 if unavailable
-
getLabelItemId
Retrieve the label item id at coordinates.- Parameters:
coordinates- source coordinates- Returns:
- label item id, or 0 if unavailable
-
getLabelName
Retrieve a label name at coordinates.- Parameters:
coordinates- source coordinates- Returns:
- label name, or null if unavailable
-
setLabelName
Set a label name at coordinates.- Parameters:
coordinates- source coordinatesname- new label name
-
getLocalVariableItemId
long getLocalVariableItemId(int methodIndex, long varOffset) Retrieve a local variable item id.- Parameters:
methodIndex- method indexvarOffset- variable offset- Returns:
- local variable item id, or 0 if unavailable
-
getLocalVariableName
Retrieve a local variable name.- Parameters:
methodIndex- method indexvarOffset- variable offset- Returns:
- local variable name, or null if unavailable
-
setLocalVariableName
Set a local variable name.- Parameters:
methodIndex- method indexvarOffset- variable offsetname- new variable name
-
getParamName
Retrieve a parameter name.- Parameters:
methodIndex- method indexparamIndex- parameter index- Returns:
- parameter name, or null if unavailable
-
setParamName
Set a parameter name.- Parameters:
methodIndex- method indexparamIndex- parameter indexname- new parameter name- Returns:
- true if the name was set
-
getPackageOfMethod
Retrieve the package containing a method.- Parameters:
methodIndex- method index- Returns:
- package name, or null if unavailable
-
getTypeItemId
Retrieve a type item id by type signature.- Parameters:
typeSignature- type signature- Returns:
- type item id, or 0 if unavailable
-
getTypeSignature
Retrieve a type signature.- Parameters:
typeSignature- type signature key- Returns:
- type signature, or null if unavailable
-
getSyntheticIdentifierItemId
long getSyntheticIdentifierItemId(int methodIndex, int varId) Retrieve an item id for a synthetic identifier.- Parameters:
methodIndex- method indexvarId- variable id- Returns:
- synthetic identifier item id, or 0 if unavailable
-
getStructureFieldItemId
Retrieve a structure field item id.- Parameters:
typeSignature- structure type signaturefieldOffset- field offset- Returns:
- structure field item id, or 0 if unavailable
-
getStructureFieldName
Retrieve a structure field name.- Parameters:
typeSignature- structure type signaturefieldOffset- field offset- Returns:
- structure field name, or null if unavailable
-
getNativeInstructionFormat
Format the native instruction at an address.- Parameters:
nativeAddress- native address- Returns:
- formatted instruction text, or null if unavailable
-
getNativeString
Retrieve a native string item by index.- Parameters:
itemIndex- native string item index- Returns:
- native string item, or null if unavailable
-
getPotentialDataAsString
Retrieve potential data at an address as text.- Parameters:
nativeAddress- native address- Returns:
- string representation, or null if unavailable
-