public abstract class Statement extends Object implements Comparable<Object>
Modifier and Type | Field and Description |
---|---|
protected CommentStatement |
comment |
protected DictIdentifier |
identifier |
protected Label |
label |
protected int |
lineNumber |
protected File |
sourceFile |
protected URI |
sourceURI |
Constructor and Description |
---|
Statement(Label sourceLabel,
int lineNumber,
DictIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
void |
attachComment(org.antlr.runtime.Token commentToken) |
int |
compareTo(Object o) |
CommentStatement |
getComment()
Returns the comment associated with statement
|
DictIdentifier |
getIdentifier()
Retrieves the identifier for the statement
|
Label |
getLabel()
Retrieves the label associated with this statement
|
int |
getLineNumber()
Retrieves the line for this statement
|
File |
getSourceFile() |
String |
getSourceString() |
URI |
getSourceURI() |
String |
toString() |
protected void |
validateCommentType(DictIdentifier id) |
protected void |
validateElementType(DictIdentifier id) |
protected void |
validateGroupType(DictIdentifier id) |
protected void |
validateObjectType(DictIdentifier id) |
protected void |
validatePointerType(DictIdentifier id) |
protected void |
validateType(DictIdentifier id,
Class<? extends Definition> clazz) |
protected final int lineNumber
protected final DictIdentifier identifier
protected final URI sourceURI
protected final File sourceFile
protected final Label label
protected CommentStatement comment
public Statement(Label sourceLabel, int lineNumber, DictIdentifier identifier)
public Label getLabel()
public int getLineNumber()
public DictIdentifier getIdentifier()
public URI getSourceURI()
public File getSourceFile()
public String getSourceString()
public void attachComment(org.antlr.runtime.Token commentToken)
public CommentStatement getComment()
public int compareTo(Object o)
compareTo
in interface Comparable<Object>
protected void validateType(DictIdentifier id, Class<? extends Definition> clazz)
protected void validateObjectType(DictIdentifier id)
protected void validateGroupType(DictIdentifier id)
protected void validateElementType(DictIdentifier id)
protected void validateCommentType(DictIdentifier id)
protected void validatePointerType(DictIdentifier id)
Copyright © 2005–2015 Planetary Data System. All rights reserved.