private static void rewriteKeywords(AbstractRule rule, N4JSKeywords keywords, ImmutableMap.Builder<AbstractElement, Integer> builder) { for (EObject obj : EcoreUtil2.eAllContents(rule.getAlternatives())) { if (obj instanceof Keyword) { Keyword keyword = (Keyword) obj; Integer type = keywords.getTokenType(keyword); if (type != null) { if (keyword.eContainer() instanceof EnumLiteralDeclaration) { builder.put((AbstractElement) keyword.eContainer(), type); } else { builder.put(keyword, type); } } } } }
public EnumLiteralDeclaration getIntegerEnumLiteralDeclaration_3() { return cIntegerEnumLiteralDeclaration_3; }
public EnumLiteralDeclaration getPublicInternalEnumLiteralDeclaration_1() { return cPublicInternalEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_2() { return cPublicEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_0() { return cPrivateEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getProjectEnumLiteralDeclaration_1() { return cProjectEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getProtectedInternalEnumLiteralDeclaration_2() { return cProtectedInternalEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_3() { return cProtectedEnumLiteralDeclaration_3; }
public EnumLiteralDeclaration getPublicInternalEnumLiteralDeclaration_4() { return cPublicInternalEnumLiteralDeclaration_4; }
public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_5() { return cPublicEnumLiteralDeclaration_5; }
public EnumLiteralDeclaration getVarEnumLiteralDeclaration_0() { return cVarEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getConstEnumLiteralDeclaration_1() { return cConstEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getLetEnumLiteralDeclaration_2() { return cLetEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getIncEnumLiteralDeclaration_0() { return cIncEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getDecEnumLiteralDeclaration_1() { return cDecEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getDeleteEnumLiteralDeclaration_0() { return cDeleteEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getVoidEnumLiteralDeclaration_1() { return cVoidEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getTypeofEnumLiteralDeclaration_2() { return cTypeofEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getIncEnumLiteralDeclaration_3() { return cIncEnumLiteralDeclaration_3; }
public EnumLiteralDeclaration getDecEnumLiteralDeclaration_4() { return cDecEnumLiteralDeclaration_4; }
public EnumLiteralDeclaration getPosEnumLiteralDeclaration_5() { return cPosEnumLiteralDeclaration_5; }
public EnumLiteralDeclaration getNegEnumLiteralDeclaration_6() { return cNegEnumLiteralDeclaration_6; }
public EnumLiteralDeclaration getInvEnumLiteralDeclaration_7() { return cInvEnumLiteralDeclaration_7; }
public EnumLiteralDeclaration getNotEnumLiteralDeclaration_8() { return cNotEnumLiteralDeclaration_8; }
public EnumLiteralDeclaration getTimesEnumLiteralDeclaration_0() { return cTimesEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getDivEnumLiteralDeclaration_1() { return cDivEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getModEnumLiteralDeclaration_2() { return cModEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getAddEnumLiteralDeclaration_0() { return cAddEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getSubEnumLiteralDeclaration_1() { return cSubEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getSameEnumLiteralDeclaration_0() { return cSameEnumLiteralDeclaration_0; }
public EnumLiteralDeclaration getNsameEnumLiteralDeclaration_1() { return cNsameEnumLiteralDeclaration_1; }
public EnumLiteralDeclaration getEqEnumLiteralDeclaration_2() { return cEqEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getNeqEnumLiteralDeclaration_3() { return cNeqEnumLiteralDeclaration_3; }
public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() { return cProtectedEnumLiteralDeclaration_2; }
public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_3() { return cPublicEnumLiteralDeclaration_3; }
public EnumLiteralDeclaration getExternalEnumLiteralDeclaration_4() { return cExternalEnumLiteralDeclaration_4; }
public EnumLiteralDeclaration getAbstractEnumLiteralDeclaration_5() { return cAbstractEnumLiteralDeclaration_5; }
public EnumLiteralDeclaration getStaticEnumLiteralDeclaration_6() { return cStaticEnumLiteralDeclaration_6; }