Class LineComment


public final class LineComment extends Comment
End-of-line comment AST node type.

End-of-line comments begin with "//", must end with a line delimiter (as per JLS 3.7), and must not contain line breaks.

Note that this node type is a comment placeholder, and is only useful for recording the source range where a comment was found in a source string. It is not useful for creating comments.

Since:
3.0
Restriction:
This class is not intended to be instantiated by clients.
  • Method Details

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Since:
      3.0