Package gov.nasa.pds.tools.label
Class CommentStatement
- java.lang.Object
-
- gov.nasa.pds.tools.label.Statement
-
- gov.nasa.pds.tools.label.CommentStatement
-
- All Implemented Interfaces:
Comparable<Object>
public class CommentStatement extends Statement
- Version:
- $Revision$
- Author:
- pramirez, jagander
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMENT_ID-
Fields inherited from class gov.nasa.pds.tools.label.Statement
comment, identifier, label, lineNumber, sourceFile, sourceURI
-
-
Constructor Summary
Constructors Constructor Description CommentStatement(Label sourcelabel, int lineNumber)CommentStatement(Label sourcelabel, int lineNumber, String identifier)CommentStatement(Label sourcelabel, int lineNumber, String identifier, String text)CommentStatement(Label sourcelabel, org.antlr.runtime.Token commentToken, String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachComment(org.antlr.runtime.Token commentToken)StringgetText()-
Methods inherited from class gov.nasa.pds.tools.label.Statement
compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, toString, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType
-
-
-
-
Field Detail
-
COMMENT_ID
public static final String COMMENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentStatement
public CommentStatement(Label sourcelabel, int lineNumber, String identifier, String text)
-
CommentStatement
public CommentStatement(Label sourcelabel, org.antlr.runtime.Token commentToken, String identifier)
-
CommentStatement
public CommentStatement(Label sourcelabel, int lineNumber, String identifier)
- Parameters:
lineNumber-identifier-
-
CommentStatement
public CommentStatement(Label sourcelabel, int lineNumber)
-
-
Method Detail
-
getText
public String getText()
-
attachComment
public void attachComment(org.antlr.runtime.Token commentToken)
- Overrides:
attachCommentin classStatement
-
-