public static PsiElement createElement()

in gen/com/intellij/idea/plugin/hybris/polyglotQuery/psi/PolyglotQueryTypes.java [82:133]


    public static PsiElement createElement(ASTNode node) {
      IElementType type = node.getElementType();
      if (type == ATTRIBUTE_KEY) {
        return new PolyglotQueryAttributeKeyImpl(node);
      }
      else if (type == ATTRIBUTE_KEY_NAME) {
        return new PolyglotQueryAttributeKeyNameImpl(node);
      }
      else if (type == BIND_PARAMETER) {
        return new PolyglotQueryBindParameterImpl(node);
      }
      else if (type == CMP_OPERATOR) {
        return new PolyglotQueryCmpOperatorImpl(node);
      }
      else if (type == EXPR_AND) {
        return new PolyglotQueryExprAndImpl(node);
      }
      else if (type == EXPR_ATOM) {
        return new PolyglotQueryExprAtomImpl(node);
      }
      else if (type == EXPR_OR) {
        return new PolyglotQueryExprOrImpl(node);
      }
      else if (type == LOCALIZED) {
        return new PolyglotQueryLocalizedImpl(node);
      }
      else if (type == LOCALIZED_NAME) {
        return new PolyglotQueryLocalizedNameImpl(node);
      }
      else if (type == NULL_OPERATOR) {
        return new PolyglotQueryNullOperatorImpl(node);
      }
      else if (type == ORDER_BY) {
        return new PolyglotQueryOrderByImpl(node);
      }
      else if (type == ORDER_KEY) {
        return new PolyglotQueryOrderKeyImpl(node);
      }
      else if (type == QUERY) {
        return new PolyglotQueryQueryImpl(node);
      }
      else if (type == TYPE_KEY) {
        return new PolyglotQueryTypeKeyImpl(node);
      }
      else if (type == TYPE_KEY_NAME) {
        return new PolyglotQueryTypeKeyNameImpl(node);
      }
      else if (type == WHERE_CLAUSE) {
        return new PolyglotQueryWhereClauseImpl(node);
      }
      throw new AssertionError("Unknown element type: " + type);
    }