1 19 20 package org.netbeans.lib.lexer; 21 22 import java.util.Set ; 23 import org.netbeans.api.lexer.LanguagePath; 24 import org.netbeans.api.lexer.InputAttributes; 25 import org.netbeans.api.lexer.TokenId; 26 import org.netbeans.lib.lexer.token.AbstractToken; 27 28 53 54 public interface TokenList<T extends TokenId> { 55 56 59 LanguagePath languagePath(); 60 61 73 Object tokenOrEmbeddingContainer(int index); 74 75 85 AbstractToken<T> replaceFlyToken(int index, AbstractToken<T> flyToken, int offset); 86 87 95 void wrapToken(int index, EmbeddingContainer<T> embeddingContainer); 96 97 107 int tokenOffset(int index); 108 109 115 int tokenCount(); 116 117 126 int tokenCountCurrent(); 127 128 149 int modCount(); 150 151 158 int childTokenOffset(int rawOffset); 159 160 173 char childTokenCharAt(int rawOffset, int index); 174 175 178 TokenList<? extends TokenId> root(); 179 180 184 TokenHierarchyOperation<?,? extends TokenId> tokenHierarchyOperation(); 185 186 189 InputAttributes inputAttributes(); 190 191 211 int lookahead(int index); 212 213 232 Object state(int index); 233 234 243 boolean isContinuous(); 244 245 248 Set <T> skipTokenIds(); 249 250 } 251 | Popular Tags |