gov.nasa.pds.tools.label
Class PointerStatement

java.lang.Object
  extended by gov.nasa.pds.tools.label.Statement
      extended by gov.nasa.pds.tools.label.PointerStatement
All Implemented Interfaces:
Comparable<Object>
Direct Known Subclasses:
SpecialPointer

public class PointerStatement
extends Statement

This class is the object representation of a pointer statement in a label.

Version:
$Revision: 8250 $
Author:
pramirez, jagander

Field Summary
protected  boolean externalReference
           
protected  Value value
           
 
Fields inherited from class gov.nasa.pds.tools.label.Statement
comment, identifier, label, lineNumber, sourceFile, sourceURI
 
Constructor Summary
protected PointerStatement(Label sourceLabel, int lineNumber, DictIdentifier identifier)
          Constructs essentially a null pointer
protected PointerStatement(Label sourceLabel, int lineNumber, DictIdentifier identifier, Value value)
          Constructs a pointer with a value on the right hand side
 
Method Summary
 boolean equals(Object object)
           
 List<FileReference> getFileRefs()
           
 Value getValue()
          Returns the value portion (right hand side) of the statement.
 int hashcode()
           
 boolean hasMultipleReferences()
           
 
Methods inherited from class gov.nasa.pds.tools.label.Statement
attachComment, compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, toString, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected Value value

externalReference

protected boolean externalReference
Constructor Detail

PointerStatement

protected PointerStatement(Label sourceLabel,
                           int lineNumber,
                           DictIdentifier identifier)
Constructs essentially a null pointer

Parameters:
pointerType - indicates whether it is data location, include, or description pointer
lineNumber - at which the statement occurs
identifier - of the statement

PointerStatement

protected PointerStatement(Label sourceLabel,
                           int lineNumber,
                           DictIdentifier identifier,
                           Value value)
Constructs a pointer with a value on the right hand side

Parameters:
pointerType - indicates whether it is data location, include, or description pointer
lineNumber - at which the statement occurs
identifier - of the statement
value - of the assignment
Method Detail

getValue

public Value getValue()
Returns the value portion (right hand side) of the statement.

Returns:
value

hasMultipleReferences

public boolean hasMultipleReferences()

getFileRefs

public List<FileReference> getFileRefs()

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashcode

public int hashcode()


Copyright © 2005-2011 Planetary Data System. All Rights Reserved.