public static class ComplexSymbolFactory.Location extends Object
| Constructor and Description |
|---|
ComplexSymbolFactory.Location(int line,
int column)
Location Object
stores line and column
|
ComplexSymbolFactory.Location(int line,
int column,
int offset)
Location Object
stores line, column and offset to the file start
|
ComplexSymbolFactory.Location(String unit,
int line,
int column)
Location Object
stores compilation unit, line and column
|
ComplexSymbolFactory.Location(String unit,
int line,
int column,
int offset)
Location Object
stores compilation unit, line, column and offset to the file start
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
getColumn
|
int |
getLine()
getLine
|
int |
getOffset()
getOffset
|
String |
getUnit()
getUnit
|
String |
toString()
getLine
|
void |
toXML(javax.xml.stream.XMLStreamWriter writer,
String orientation)
Writes the location information directly into an XML document
|
public ComplexSymbolFactory.Location(String unit, int line, int column, int offset)
unit - compilation unit, e.g. file nameline - line numbercolumn - column numberoffset - offset from file startpublic ComplexSymbolFactory.Location(String unit, int line, int column)
unit - compilation unit, e.g. file nameline - line numbercolumn - column numberpublic ComplexSymbolFactory.Location(int line,
int column,
int offset)
line - line numbercolumn - column numberoffset - offset from file startpublic ComplexSymbolFactory.Location(int line,
int column)
line - line numbercolumn - column numberpublic int getColumn()
public int getLine()
public String getUnit()
public void toXML(javax.xml.stream.XMLStreamWriter writer, String orientation) throws javax.xml.stream.XMLStreamException
writer - the destination XML Documentorientation - adds details about the orientation of this location as an attribute; often used with the strings "left" or "right"javax.xml.stream.XMLStreamExceptionpublic int getOffset()
Copyright © 2015. All rights reserved.