|
||||||||||
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 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 |
---|
DATA_LOCATION, DESCRIPTION, DESCRIPTION_NAMES, INCLUDE, INCLUDE_NAMES, 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 |
int |
getPointerType()
Indicates the type of pointer that this pointer statement represents. |
Value |
getValue()
Returns the value portion (right hand side) of the statement. |
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
Constructor Detail |
---|
protected PointerStatement(int pointerType, int lineNumber, java.lang.String identifier)
lineNumber
- at which the statement occursidentifier
- of the statementprotected PointerStatement(int pointerType, int lineNumber, java.lang.String identifier, Value value)
lineNumber
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |