コード例 #1
0
 public Object create(Token payload) {
   if (payload.getTokenIndex() < 0) {
     // could be token conjured up during error recovery
     return create(payload.getType(), payload.getText());
   }
   Object node = adaptor.create(payload);
   dbg.createNode(node, payload);
   return node;
 }
コード例 #2
0
 public Object create(int tokenType, String text) {
   Object node = adaptor.create(tokenType, text);
   dbg.createNode(node);
   return node;
 }
コード例 #3
0
 public Object create(int tokenType, Token fromToken) {
   Object node = adaptor.create(tokenType, fromToken);
   dbg.createNode(node);
   return node;
 }