Examples of Keywords


Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

    }
    if (isTypeVar(ttlAst)) {
      return evalTypeVar(ttlAst, nameResolver);
    }
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword.kind) {
      case TYPE_CONSTRUCTOR:
        return evalTypeExpression(ttlAst, nameResolver);
      case OPERATION:
        return evalOperationExpression(ttlAst, nameResolver);
View Full Code Here

Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

    }
  }

  private JSType evalOperationExpression(Node ttlAst, NameResolver nameResolver) {
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword) {
      case COND:
        return evalConditional(ttlAst, nameResolver);
      case MAPUNION:
        return evalMapunion(ttlAst, nameResolver);
View Full Code Here

Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

    }
  }

  private JSType evalTypeExpression(Node ttlAst, NameResolver nameResolver) {
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword) {
      case TYPE:
        return evalTemplatizedType(ttlAst, nameResolver);
      case UNION:
        return evalUnionType(ttlAst, nameResolver);
View Full Code Here

Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

  private boolean evalTypePredicate(Node ttlAst,
      NameResolver nameResolver) {
    JSType[] params = evalTypeParams(ttlAst, nameResolver);
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword) {
      case EQ:
        return params[0].isEquivalentTo(params[1]);
      case SUB:
        return params[0].isSubtype(params[1]);
View Full Code Here

Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

      if (params[i].equals("")) {
        return false;
      }
    }
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword) {
      case STREQ:
        return params[0].equals(params[1]);
      default:
        throw new IllegalStateException(
View Full Code Here

Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

    }
  }

  private boolean evalTypevarPredicate(Node ttlAst, NameResolver nameResolver) {
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword) {
      case ISDEFINED:
        return nameResolver.typeVars.get(
            getCallArgument(ttlAst, 0).getString()) != null;
      default:
View Full Code Here

Examples of com.google.javascript.jscomp.parsing.TypeTransformationParser.Keywords

  private boolean evalBoolean(Node ttlAst, NameResolver nameResolver) {
    if (isBooleanOperation(ttlAst)) {
      return evalBooleanOperation(ttlAst, nameResolver);
    }
    String name = getCallName(ttlAst);
    Keywords keyword = nameToKeyword(name);
    switch (keyword.kind) {
      case STRING_PREDICATE:
        return evalStringPredicate(ttlAst, nameResolver);
      case TYPE_PREDICATE:
        return evalTypePredicate(ttlAst, nameResolver);
View Full Code Here

Examples of com.volantis.mcs.build.themes.definitions.types.Keywords

            Property property = (Property) findObject(Property.class);
            property.setType(typeRef);

        } else if (name.equals("keywords")) {

            Keywords keywords = definitionsFactory.createKeywords();

            pushObject(keywords);
            processThemePropertyChildren(element);
            popObject();

            storeType(keywords);

        } else if (name.equals("keyword")) {

            // Define a new keyword and add it into the containing set.
            Keyword keyword = definitionsFactory.createKeyword();

            pushObject(keyword);

            processThemePropertyChildren(element);

            popObject();

            Keywords keywords = (Keywords) findObject(Keywords.class);
            keywords.addKeyword(keyword);
        } else if (name.equals("inherited")) {
            Property prop = (Property) findObject(Property.class);
            prop.setInherited(
                    Boolean.valueOf(element.getText()).booleanValue());
            // These are named elements that we are deliberately ignoring for
View Full Code Here

Examples of oms3.annotations.Keywords

            sb.append(" License: " + licenseStr).append(NEWLINE);
            sb.append("</blockquote>");
            sb.append(NEWLINE);
        }
        // general info: keywords
        Keywords keywords = moduleClass.getAnnotation(Keywords.class);
        if (keywords != null) {
            String keywordsStr = AnnotationUtilities.getLocalizedKeywords(keywords);
            sb.append("<blockquote>");
            sb.append(" Keywords: " + keywordsStr).append(NEWLINE);
            sb.append("</blockquote>");
View Full Code Here

Examples of org.drools.eclipse.editors.Keywords

public class KeywordsTest {

    @Test
    public void testAll() {
        Keywords keys = Keywords.getInstance();
        String[] all = keys.getAllDroolsKeywords();
        assertTrue(all.length > 0);
        assertEquals("when", all[0]);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.