Class XmlFastScanner
- java.lang.Object
 - 
- jetbrains.mps.smodel.persistence.def.XmlFastScanner
 
 
- 
public class XmlFastScanner extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intCLOSE_TAGstatic intEOIstatic intOPEN_TAGstatic intOTHERstatic intSIMPLE_TAG 
- 
Constructor Summary
Constructors Constructor Description XmlFastScanner(char[] data) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()intgetOffset()StringgetText(int start, int end)intgetTokenOffset()static voidmain(String[] args)intnext()inttagDepth()0-based (top xml element has depth == 0) value indicating nesting of a tag.Stringtoken() 
 - 
 
- 
- 
Field Detail
- 
EOI
public static final int EOI
- See Also:
 - Constant Field Values
 
 
- 
SIMPLE_TAG
public static final int SIMPLE_TAG
- See Also:
 - Constant Field Values
 
 
- 
OPEN_TAG
public static final int OPEN_TAG
- See Also:
 - Constant Field Values
 
 
- 
CLOSE_TAG
public static final int CLOSE_TAG
- See Also:
 - Constant Field Values
 
 
- 
OTHER
public static final int OTHER
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
next
public int next()
 
- 
tagDepth
public int tagDepth()
0-based (top xml element has depth == 0) value indicating nesting of a tag. Meaningless for tokens other than OPEN_TAG, CLOSE_TAG, SIMPLE_TAG. 
- 
token
public String token()
 
- 
getText
public String getText(int start, int end)
 
- 
getTokenOffset
public int getTokenOffset()
 
- 
getOffset
public int getOffset()
 
- 
getName
public String getName()
 
- 
main
public static void main(String[] args)
 
 - 
 
 -