1 19 20 package org.netbeans.modules.lexer.demo; 21 22 import org.netbeans.api.lexer.Token; 23 import org.netbeans.api.lexer.TokenId; 24 25 31 32 public class DemoSampleToken extends StringToken { 33 34 private int lookahead; 35 36 private int lookback; 37 38 private Object state; 39 40 DemoSampleToken(TokenId id, String text) { 41 super(id, text); 42 } 43 44 public int getLookahead() { 45 return lookahead; 46 } 47 48 void setLookahead(int lookahead) { 49 this.lookahead = lookahead; 50 } 51 52 public int getLookback() { 53 return lookback; 54 } 55 56 void setLookback(int lookback) { 57 this.lookback = lookback; 58 } 59 60 public Object getState() { 61 return state; 62 } 63 64 void setState(Object state) { 65 this.state = state; 66 } 67 68 } 69 70 | Popular Tags |