Public Member Functions | Static Public Attributes | Private Attributes

de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation Class Reference

Metainformation for aXLang elements. More...

List of all members.

Public Member Functions

int compareTo (MetaInformation theOther)
 Defines the sorting order.
Integer getColumnEnd ()
 Returns the column number that contains the end of the element declaration.
Integer getColumnStart ()
 Returns the column number that contains the start of the element declaration.
Position getDynamicposition ()
String getFilename ()
 Returns the name of the file that contains the element declaration.
String getIncludeFileName ()
Integer getLineEnd ()
 Returns the line number that contains the end of the element declaration.
Integer getLineStart ()
 Returns the line number that contains the start of the element declaration.
 MetaInformation ()
 Constructor with no values.
 MetaInformation (String filename)
 Constructor with only a filename.
 MetaInformation (String newFilename, String newIncludeFilename, Integer lineStart, Integer lineEnd, Integer columnStart, Integer columnEnd)
 Constructor with all values nut dynamic position.
void setColumnEnd (Integer column)
 Sets the column number that contains the end of the element declaration.
void setColumnStart (Integer column)
 Sets the column number that contains the start of the element declaration.
void setDynamicposition (Position dynamicposition)
void setFilename (String filename)
 Sets the name of the file that contains the element declaration.
void setIncludeFileName (String sIncludeFileName)
void setLineEnd (Integer line)
 Sets the line number that contains the end of the element declaration.
void setLineStart (Integer line)
 Sets the line number that contains the start of the element declaration.
String toString ()
 Returns the string representation of the meta information.

Static Public Attributes

static final Integer NO_VALUE = Integer.valueOf(-1)
 value if no value is given

Private Attributes

Integer iColumnEnd = NO_VALUE
 column number that contains the end of the element declaration
Integer iColumnStart = NO_VALUE
 column number that contains the start of the element declaration
Integer iLineEnd = NO_VALUE
 line number that contains the end of the element declaration
Integer iLineStart = NO_VALUE
 line number that contains the start of the element declaration
Position pDynamicPosition = null
 dynamic position
String sFilename = null
 name of the file that contains the element declaration
String sIncludeFileName = null
 the include string of the file

Detailed Description

Metainformation for aXLang elements.

This class stores the meta information for elements. This information that is only needed during the lifetime of the model, it does not have to be stored.

Author:
ekleinod
skaegebein
Version:
0.9.0
Since:
0.4.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.MetaInformation (  ) 

Constructor with no values.

de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.MetaInformation ( String  filename  ) 

Constructor with only a filename.

Parameters:
filename 
de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.MetaInformation ( String  newFilename,
String  newIncludeFilename,
Integer  lineStart,
Integer  lineEnd,
Integer  columnStart,
Integer  columnEnd 
)

Constructor with all values nut dynamic position.

Parameters:
newFilename filename
newIncludeFilename include filename
lineStart line start
lineEnd line end
columnStart column start
columnEnd column end

Member Function Documentation

int de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.compareTo ( MetaInformation  theOther  ) 

Defines the sorting order.

  1. filename
  2. line number
  3. column number
Parameters:
theOther other meta information
Returns:
result of the comparison
Return values:
<0 this element is less than the other
0 this element equals the other
>0 this element is greater than the other
Integer de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getColumnEnd (  ) 

Returns the column number that contains the end of the element declaration.

Returns:
the column
Integer de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getColumnStart (  ) 

Returns the column number that contains the start of the element declaration.

Returns:
the column
Position de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getDynamicposition (  ) 
Returns:
the dynamicposition
String de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getFilename (  ) 

Returns the name of the file that contains the element declaration.

Returns:
the filename
String de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getIncludeFileName (  ) 
Returns:
the sIncludeFileName
Integer de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getLineEnd (  ) 

Returns the line number that contains the end of the element declaration.

Returns:
the line
Integer de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.getLineStart (  ) 

Returns the line number that contains the start of the element declaration.

Returns:
the line
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setColumnEnd ( Integer  column  ) 

Sets the column number that contains the end of the element declaration.

Parameters:
column the column to set
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setColumnStart ( Integer  column  ) 

Sets the column number that contains the start of the element declaration.

Parameters:
column the column to set
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setDynamicposition ( Position  dynamicposition  ) 
Parameters:
dynamicposition the dynamicposition to set
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setFilename ( String  filename  ) 

Sets the name of the file that contains the element declaration.

Parameters:
filename the filename to set
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setIncludeFileName ( String  sIncludeFileName  ) 
Parameters:
sIncludeFileName the sIncludeFileName to set
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setLineEnd ( Integer  line  ) 

Sets the line number that contains the end of the element declaration.

Parameters:
line the line to set
void de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.setLineStart ( Integer  line  ) 

Sets the line number that contains the start of the element declaration.

Parameters:
line the line to set
String de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.toString (  ) 

Returns the string representation of the meta information.

Returns:
string representation

Member Data Documentation

column number that contains the end of the element declaration

column number that contains the start of the element declaration

line number that contains the end of the element declaration

line number that contains the start of the element declaration

final Integer de.fraunhofer.isst.axbench.axlang.utilities.MetaInformation.NO_VALUE = Integer.valueOf(-1) [static]

value if no value is given

dynamic position

name of the file that contains the element declaration

the include string of the file