1 5 package org.exoplatform.services.grammar.wiki.impl; 6 7 12 public class TokenHandler { 13 public Token handleToken(Token parent, Token token, ParsingContext context) { 14 throw new IllegalAccessError ("You need to implmenent this method in: " + getClass().getName()) ; 15 } 16 17 public void reinit(ParsingContext context) { 18 19 } 20 21 public String [] getHandleableTokenType() { 22 throw new IllegalAccessError ("You need to implmenent this method in: " + getClass().getName()) ; 23 } 24 25 protected boolean hasAncestor(Token token , String type) { 26 if(token == null) return false ; 27 return token.hasAncestor(type) ; 28 } 29 } | Popular Tags |