|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.label.Statement
public abstract class Statement
This class represents a statement in a PDS label.
Field Summary | |
---|---|
protected CommentStatement |
comment
|
protected DictIdentifier |
identifier
|
protected Label |
label
|
protected int |
lineNumber
|
protected File |
sourceFile
|
protected URI |
sourceURI
|
Constructor Summary | |
---|---|
Statement(Label sourceLabel,
int lineNumber,
DictIdentifier identifier)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int lineNumber
protected final DictIdentifier identifier
protected final URI sourceURI
protected final File sourceFile
protected final Label label
protected CommentStatement comment
Constructor Detail |
---|
public Statement(Label sourceLabel, int lineNumber, DictIdentifier identifier)
Method Detail |
---|
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)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |