public class Comment
extends java.lang.Object
This class represents a code comment. Currently, only text (no audio) comments are supported.
Comments can be attached to an entire file (global, or 'notes'), a class, a field, a method, or an instruction within a method body.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getItemSignature()
Get the full name of the item onto which the comment is attached.
|
int |
getMethodOffset()
Retrieve the method offset for this comment, if the comment is on an instruction.
|
java.lang.String |
getText()
Get the comment text string.
|
public java.lang.String getItemSignature()
Get the full name of the item onto which the comment is attached. It can be a class, field, or method. If null, this means this is the global comment.
public int getMethodOffset()
Retrieve the method offset for this comment, if the comment is on an instruction.
public java.lang.String getText()
Get the comment text string.