gec.gctparser
Class GctLineParser

java.lang.Object
  extended by gec.gctparser.GctLineParser

public class GctLineParser
extends java.lang.Object

This parses a line from the listing. The line has the form [x.x.x] type1 path : type2 = value(s) ; where [x.x.x] - gad type1: INPUT, OUTPUT, INTERNAL , REFERENCE path - path name to variable type2 - variable type, eg REAL, DINT, STRING, or ARRAY OF type2 value or values if an array

Author:
bburch

Constructor Summary
GctLineParser(java.util.Vector vectorOfTokens)
          Constructor to parse the line of tokens.
 
Method Summary
 int getEndingIndex()
          Find the token type.
 java.lang.String getGad()
           
 int getNumberOfValues()
           
 java.lang.String getPath()
           
 java.lang.String getReferenceType()
           
 int getStartingIndex()
           
 java.util.Vector getValues()
          Return the values as a vector of strings.
 java.lang.String getVariableType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GctLineParser

public GctLineParser(java.util.Vector vectorOfTokens)
Constructor to parse the line of tokens.

Parameters:
vectorOfTokens - Vector of String - the tokens to parse
Method Detail

getEndingIndex

public int getEndingIndex()
Find the token type.

Parameters:
token - String - the token type
Returns:
String - the token

getGad

public java.lang.String getGad()

getNumberOfValues

public int getNumberOfValues()

getPath

public java.lang.String getPath()

getReferenceType

public java.lang.String getReferenceType()

getStartingIndex

public int getStartingIndex()

getValues

public java.util.Vector getValues()
Return the values as a vector of strings.

Returns:
Vector of strings

getVariableType

public java.lang.String getVariableType()