|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.codegen.jet.JETMark
public final class JETMark
A mark represents a point in the JET input.
Field Summary | |
---|---|
protected java.lang.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 java.lang.String |
encoding
This is the encoding of the stream. |
protected int |
fileid
This is the id of the file. |
protected java.util.Stack<org.eclipse.emf.codegen.jet.JETMark.IncludeState> |
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(java.lang.Object other)
|
java.lang.String |
format(java.lang.String key)
|
java.lang.String |
getBaseURI()
|
int |
getCursor()
|
java.lang.String |
getFile()
|
int |
getFileId()
|
java.lang.String |
getLocalFile()
|
boolean |
popStream()
Restores this mark's state to a previously stored stream. |
void |
pushStream(char[] inStream,
int inFileid,
java.lang.String inBaseDir,
java.lang.String inEncoding)
Sets this mark's state to a new stream. |
java.lang.String |
toShortString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int cursor
protected int line
protected int col
protected int fileid
protected java.lang.String baseDir
protected char[] stream
protected java.util.Stack<org.eclipse.emf.codegen.jet.JETMark.IncludeState> includeStack
protected java.lang.String encoding
protected JETReader reader
Method Detail |
---|
public void pushStream(char[] inStream, int inFileid, java.lang.String inBaseDir, java.lang.String inEncoding)
inStream
- new stream for markinFileid
- id of new file from which stream comes frominBaseDir
- directory of fileinEncoding
- encoding of new filepublic boolean popStream()
public java.lang.String getFile()
public java.lang.String getBaseURI()
public java.lang.String getLocalFile()
public int getFileId()
public int getCursor()
public java.lang.String toShortString()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String format(java.lang.String key)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |