package com.dci.intellij.dbn.language.common.element.lookup;
import com.dci.intellij.dbn.language.common.SharedTokenTypeBundle;
import com.dci.intellij.dbn.language.common.TokenType;
import com.dci.intellij.dbn.language.common.element.ElementType;
import com.dci.intellij.dbn.language.common.element.ExecVariableElementType;
import com.dci.intellij.dbn.language.common.element.LeafElementType;
import com.dci.intellij.dbn.language.common.element.path.PathNode;
public class ExecVariableElementTypeLookupCache extends LeafElementTypeLookupCache<ExecVariableElementType>{
public ExecVariableElementTypeLookupCache(ExecVariableElementType elementType) {
super(elementType);
}
public void init() {
SharedTokenTypeBundle sharedTokenTypes = getElementType().getLanguage().getSharedTokenTypes();
TokenType variable = sharedTokenTypes.getVariable();
allPossibleTokens.add(variable);
firstPossibleTokens.add(variable);
firstRequiredTokens.add(variable);
}
@Override
public boolean containsToken(TokenType tokenType) {
SharedTokenTypeBundle sharedTokenTypes = getElementType().getLanguage().getSharedTokenTypes();
return sharedTokenTypes.getVariable() == tokenType;
}
public boolean isFirstPossibleLeaf(LeafElementType leaf, ElementType pathChild) {
return false;
}
public boolean isFirstRequiredLeaf(LeafElementType leaf, ElementType pathChild) {
return false;
}
public boolean containsLandmarkToken(TokenType tokenType, PathNode node) {
return false;
}
public boolean startsWithIdentifier(PathNode node) {
return false;
}
}