Class Statement

    • Field Detail

      • lineNumber

        protected final int lineNumber
      • sourceURI

        protected final URI sourceURI
      • sourceFile

        protected final File sourceFile
      • label

        protected final Label label
    • Constructor Detail

      • Statement

        public Statement​(Label sourceLabel,
                         int lineNumber,
                         DictIdentifier identifier)
    • Method Detail

      • getLabel

        public Label getLabel()
        Retrieves the label associated with this statement
        Returns:
        label
      • getLineNumber

        public int getLineNumber()
        Retrieves the line for this statement
        Returns:
        The line on which the statement starts
      • getIdentifier

        public DictIdentifier getIdentifier()
        Retrieves the identifier for the statement
        Returns:
        unique identifier
      • getSourceURI

        public URI getSourceURI()
      • getSourceFile

        public File getSourceFile()
      • getSourceString

        public String getSourceString()
      • attachComment

        public void attachComment​(org.antlr.runtime.Token commentToken)
      • getComment

        public CommentStatement getComment()
        Returns the comment associated with statement
        Returns:
        comment
      • validateObjectType

        protected void validateObjectType​(DictIdentifier id)
      • validateGroupType

        protected void validateGroupType​(DictIdentifier id)
      • validateElementType

        protected void validateElementType​(DictIdentifier id)
      • validateCommentType

        protected void validateCommentType​(DictIdentifier id)
      • validatePointerType

        protected void validatePointerType​(DictIdentifier id)