Package gov.nasa.pds.tools.label
Class PointerStatement
- java.lang.Object
-
- gov.nasa.pds.tools.label.Statement
-
- 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$
- Author:
- pramirez, jagander
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanexternalReferenceprotected Valuevalue-
Fields inherited from class gov.nasa.pds.tools.label.Statement
comment, identifier, label, lineNumber, sourceFile, sourceURI
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointerStatement(Label sourceLabel, int lineNumber, DictIdentifier identifier)Constructs essentially a null pointerprotectedPointerStatement(Label sourceLabel, int lineNumber, DictIdentifier identifier, Value value)Constructs a pointer with a value on the right hand side
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)List<FileReference>getFileRefs()ValuegetValue()Returns the value portion (right hand side) of the statement.inthashcode()booleanhasMultipleReferences()-
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
-
-
-
-
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 pointerlineNumber- at which the statement occursidentifier- 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 pointerlineNumber- at which the statement occursidentifier- of the statementvalue- 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()
-
hashcode
public int hashcode()
-
-