|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.label.Statement
gov.nasa.pds.tools.label.PointerStatement
public class PointerStatement
This class is the object representation of a pointer statement in a label.
Field Summary | |
---|---|
protected boolean |
externalReference
|
protected Value |
value
|
Fields inherited from class gov.nasa.pds.tools.label.Statement |
---|
context, filename, identifier, lineNumber |
Fields inherited from interface gov.nasa.pds.tools.label.PointerType |
---|
CATALOG, CATALOG_NAMES, DATA_LOCATION, DESCRIPTION, DESCRIPTION_NAMES, INCLUDE, INCLUDE_NAMES, MAP_PROJECTION, UNDEFINED |
Constructor Summary | |
---|---|
protected |
PointerStatement(int pointerType,
int lineNumber,
java.lang.String identifier)
Constructs essentially a null pointer |
protected |
PointerStatement(int pointerType,
int lineNumber,
java.lang.String identifier,
Value value)
Constructs a pointer with a value on the right hand side |
protected |
PointerStatement(java.lang.String identifier,
Value value)
Constructs a pointer with an unknown line number. |
Method Summary | |
---|---|
void |
attachComment(CommentStatement comment)
Attaches a comment to this pointer |
CommentStatement |
getComment()
Returns the comment that occurs on the same line as this pointer assigment |
java.lang.String |
getExternalFileReference()
Gets the name of the external file that this pointer references |
java.util.List |
getExternalFileReferences()
|
int |
getPointerType()
Indicates the type of pointer that this pointer statement represents. |
Value |
getValue()
Returns the value portion (right hand side) of the statement. |
boolean |
hasExternalReference()
Indicates whether or not the pointer makes reference to an external file. |
boolean |
hasMultipleReferences()
|
Methods inherited from class gov.nasa.pds.tools.label.Statement |
---|
compareTo, getContext, getFilename, getIdentifier, getLineNumber, setContext, setFilename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Value value
protected boolean externalReference
Constructor Detail |
---|
protected PointerStatement(int pointerType, int lineNumber, java.lang.String identifier)
pointerType
- indicates whether it is data location, include, or description pointerlineNumber
- at which the statement occursidentifier
- of the statementprotected PointerStatement(int pointerType, int lineNumber, java.lang.String identifier, Value value)
pointerType
- indicates whether it is data location, include, or description pointerlineNumber
- at which the statement occursidentifier
- of the statementvalue
- of the assignmentprotected PointerStatement(java.lang.String identifier, Value value)
identifier
- of the statementvalue
- of the assignmentMethod Detail |
---|
public Value getValue()
public void attachComment(CommentStatement comment)
attachComment
in class Statement
comment
- that occurs on same line as this pointer statementpublic CommentStatement getComment()
public int getPointerType()
PointerType
public boolean hasExternalReference()
public boolean hasMultipleReferences()
public java.lang.String getExternalFileReference()
public java.util.List getExternalFileReferences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |