use of com.android.dx.cf.attrib.AttSourceDebugExtension in project J2ME-Loader by nikita36078.
the class StdAttributeFactory method sourceDebugExtension.
/**
* Parses a {@code SourceDebugExtesion} attribute.
*/
private Attribute sourceDebugExtension(DirectClassFile cf, int offset, int length, ParseObserver observer) {
ByteArray bytes = cf.getBytes().slice(offset, offset + length);
CstString smapString = new CstString(bytes);
Attribute result = new AttSourceDebugExtension(smapString);
if (observer != null) {
String decoded = smapString.getString();
observer.parsed(bytes, offset, length, "sourceDebugExtension: " + decoded);
}
return result;
}
Aggregations