Overview

 
Package  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

org.eclipse.emf.codegen.jet
Class JETMark

java.lang.Object
  extended byorg.eclipse.emf.codegen.jet.JETMark


public final class JETMark
extends Object

A mark represents a point in the JET input.


Field Summary
protected  String baseDir
          This is the base URI for relative paths.
protected  int col
          This is the column index.
protected  int cursor
          This is the character offset.
protected  String encoding
          This is the encoding of the stream.
protected  int fileid
          This is the id of the file.
protected  Stack includeStack
          This is the stack of inclusions.
protected  int line
          This is the line index.
protected  JETReader reader
          This is the reader that owns this mark.
protected  char[] stream
          This is the stream of characters.
 
Method Summary
 boolean equals(Object other)
           
 String format(String key)
           
 int getCursor()
           
 String getFile()
           
 int getFileId()
           
 String getLocalFile()
           
 boolean popStream()
          Restores this mark's state to a previously stored stream.
 void pushStream(char[] inStream, int inFileid, String inBaseDir, String inEncoding)
          Sets this mark's state to a new stream.
 String toShortString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

 

Field Detail

 

 

cursor

protected int cursor

This is the character offset.


 

 

line

protected int line

This is the line index.


 

 

col

protected int col

This is the column index.


 

 

fileid

protected int fileid

This is the id of the file.


 

 

baseDir

protected String baseDir

This is the base URI for relative paths.


 

 

stream

protected char[] stream

This is the stream of characters.


 

 

includeStack

protected Stack includeStack

This is the stack of inclusions.


 

 

encoding

protected String encoding

This is the encoding of the stream.


 

 

reader

protected JETReader reader

This is the reader that owns this mark.

Method Detail

 

 

pushStream

public void pushStream(char[] inStream,
                       int inFileid,
                       String inBaseDir,
                       String inEncoding)

Sets this mark's state to a new stream. It will store the current stream in it's includeStack.

Parameters:
inStream - new stream for mark
inFileid - id of new file from which stream comes from
inBaseDir - directory of file
inEncoding - encoding of new file


 

 

popStream

public boolean popStream()

Restores this mark's state to a previously stored stream.


 

 

getFile

public String getFile()


 

 

getLocalFile

public String getLocalFile()


 

 

getFileId

public int getFileId()


 

 

getCursor

public int getCursor()


 

 

toShortString

public String toShortString()


 

 

toString

public String toString()


 

 

format

public String format(String key)


 

 

equals

public boolean equals(Object other)


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD