Package jetbrains.mps.text
Class BasicToken
- java.lang.Object
 - 
- jetbrains.mps.text.BasicToken
 
 
- 
- All Implemented Interfaces:
 TextAreaToken
public final class BasicToken extends Object implements TextAreaToken
Default implementation of text area identifier. One could use whatever comfortable to identify text area, provided it has correctequals(Object)implementation.TextBuffer tb; tb.pushArea(new BasicToken(42)); tb.area().append("A"); tb.pushArea(new BasicToken("body")); tb.area().append("B"); tb.popArea(); tb.area().append("C"); tb.pushArea(new BasicToken("body")); tb.area().append("D");yields two text areas, with "AC" in the chunk identified as '42', and "BD" in the text chunk identified as "body" 
- 
- 
Constructor Summary
Constructors Constructor Description BasicToken(Object identity) 
 -