net.sf.latexdraw.parsers
Class CodeParser.Code

java.lang.Object
  extended by net.sf.latexdraw.parsers.CodeParser.Code
Enclosing class:
CodeParser

private static class CodeParser.Code
extends java.lang.Object

Defines a core level of the code parser that can be share with others code parser.

Author:
Arnaud Blouin

Field Summary
protected  java.lang.String code
          The code to parser.
protected  int linePosition
          The current line number.
protected  int position
          The current position of the character to read.
 
Constructor Summary
CodeParser.Code(java.lang.String c)
          Creates and initialises a core code.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

protected java.lang.String code
The code to parser.


position

protected int position
The current position of the character to read.


linePosition

protected int linePosition
The current line number.

Constructor Detail

CodeParser.Code

public CodeParser.Code(java.lang.String c)
Creates and initialises a core code.

Parameters:
c - The code to parse.
Throws:
java.lang.IllegalArgumentException - If the given code is null.