Class Comment

java.lang.Object
de.monticore.ast.Comment
Direct Known Subclasses:
CommentBasedModelTraversal.WComment

public class Comment extends Object
Class represents a comment (contains the comment and the start- and end-position)
  • Field Details

    • start

      protected de.se_rwth.commons.SourcePosition start
    • end

      protected de.se_rwth.commons.SourcePosition end
    • text

      protected String text
  • Constructor Details

    • Comment

      public Comment()
    • Comment

      public Comment(String text)
  • Method Details

    • get_SourcePositionEnd

      public de.se_rwth.commons.SourcePosition get_SourcePositionEnd()
    • set_SourcePositionEnd

      public void set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
    • get_SourcePositionStart

      public de.se_rwth.commons.SourcePosition get_SourcePositionStart()
    • set_SourcePositionStart

      public void set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object