class NameAndStream extends Object
Constructor and Description |
---|
NameAndStream(String text,
String locationDescription)
Parse a name and stream.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Retrieve the name.
|
int |
getNumberOfChars()
Retrieve the number of characters consumed from the input.
|
short |
getStream()
Retrieve the stream number.
|
boolean |
isNegated()
Was a negation operator ('N') embedded in the name?
|
String |
toString() |
public NameAndStream(String text, String locationDescription) throws Exception
text
- String; the name and streamlocationDescription
- String; description of the location in the input fileException
- when text is not a valid TrafCOD variable namepublic boolean isNegated()
public short getStream()
public String getName()
public int getNumberOfChars()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.