Examples of IdentNode


Examples of at.ssw.coco.lib.model.atgAst.nodeTypes.IdentNode

    ProductionNode productionNode =
      root.getCompilerNode().getParserSpecNode().getProductionNodes().get(2);
    checkNode(productionNode, 1063, 115, root.getCompilerNode().getParserSpecNode());

    //Ident
    IdentNode identNode = productionNode.getIdentNode();
    checkNode(identNode, 1063, 9, productionNode);
    assertTrue(identNode.getIdent().equals("Condition"));

    //AttrDecl
    AttrDeclNode attrDeclNode = productionNode.getAttrDeclNode();
    checkNode(attrDeclNode, 1072, 18, productionNode);
   
View Full Code Here

Examples of at.ssw.coco.lib.model.atgAst.nodeTypes.IdentNode

        //t0_f0_sym
        SymbolNode t0_f0_sym = t0_f0.getSymbolNode();
        checkSymbolNode(t0_f0_sym, 1120, 5, t0_f0, SymbolNode.Kind.IDENT);
       
        //t0_f0_sym_ident
        IdentNode t0_f0_sym_ident = t0_f0_sym.getIdentNode();
        checkIdentNode(t0_f0_sym_ident, 1120, 5, t0_f0_sym, IdentNode.Kind.TOKEN, "ident");
       
      //t0_f1
      FactorNode t0_f1 = t0.getFactorNodes().get(1);
      checkFactorNode(t0_f1, 1126, 4, t0, FactorNode.Kind.SYMBOL);
     
        //t0_f1_sym
        SymbolNode t0_f1_sym = t0_f1.getSymbolNode();
        checkSymbolNode(t0_f1_sym, 1126, 4, t0_f1, SymbolNode.Kind.STRING, "==");
     
      //t0_f2
      FactorNode t0_f2 = t0.getFactorNodes().get(2);
      checkFactorNode(t0_f2, 1131, 6, t0, FactorNode.Kind.SYMBOL);

        //t0_f2_sym
        SymbolNode t0_f2_sym = t0_f2.getSymbolNode();
        checkSymbolNode(t0_f2_sym, 1131, 6, t0_f2, SymbolNode.Kind.IDENT);
       
        //t0_f2_sym_ident
        IdentNode t0_f2_sym_ident = t0_f2_sym.getIdentNode();
        checkIdentNode(t0_f2_sym_ident, 1131, 6, t0_f2_sym, IdentNode.Kind.TOKEN, "number");
       
    //t1
    TermNode t1 = expressionNode.getTermNodes().get(1);

      //t1_f0
      FactorNode t1_f0 = t1.getFactorNodes().get(0);
      checkFactorNode(t1_f0, 1142, 5, t1, FactorNode.Kind.SYMBOL);
     
        //t1_f0_sym
        SymbolNode t1_f0_sym = t1_f0.getSymbolNode();
        checkSymbolNode(t1_f0_sym, 1142, 5, t1_f0, SymbolNode.Kind.IDENT);
     
        //t1_f0_sym_ident
        IdentNode t1_f0_sym_ident = t1_f0_sym.getIdentNode();
        checkIdentNode(t1_f0_sym_ident, 1142, 5, t1_f0_sym, IdentNode.Kind.TOKEN, "ident");
     
      //t1_f1
      FactorNode t1_f1 = t1.getFactorNodes().get(1);
      checkFactorNode(t1_f1, 1148, 4, t1, FactorNode.Kind.SYMBOL);
     
        //t1_f1_sym
        SymbolNode t1_f1_sym = t1_f1.getSymbolNode();
        checkSymbolNode(t1_f1_sym, 1148, 4, t1_f1, SymbolNode.Kind.STRING, "==");
       
      //t1_f2
      FactorNode t1_f2 = t1.getFactorNodes().get(2);
      checkFactorNode(t1_f2, 1153, 5, t1, FactorNode.Kind.SYMBOL);
     
        //t1_f2_sym
        SymbolNode t1_f2_sym = t1_f2.getSymbolNode();
        checkSymbolNode(t1_f2_sym, 1153, 5, t1_f2, SymbolNode.Kind.IDENT);
     
        //t1_f2_sym_ident
        IdentNode t1_f2_sym_ident = t1_f2_sym.getIdentNode();
        checkIdentNode(t1_f2_sym_ident, 1153, 5, t1_f2_sym, IdentNode.Kind.TOKEN, "ident");

    //t2
    TermNode t2 = expressionNode.getTermNodes().get(2);
    checkTermNode(t2, 1163, 11, expressionNode, 1);
   
      //t2_f0
      FactorNode t2_f0 = t2.getFactorNodes().get(0);
      checkFactorNode(t2_f0, 1163, 11, t2, FactorNode.Kind.SYMBOL, false, true);
     
        //t2_f0_sym
        SymbolNode t2_f0_sym = t2_f0.getSymbolNode();
        checkSymbolNode(t2_f0_sym, 1168, 6, t2_f0, SymbolNode.Kind.IDENT);
     
        //t2_f0_sym_ident
        IdentNode t2_f0_sym_ident = t2_f0_sym.getIdentNode();
        checkIdentNode(t2_f0_sym_ident, 1168, 6, t2_f0_sym, IdentNode.Kind.TOKEN, "number");   
  }
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  private AST generateSyntheticDotNodeForNonQualifiedPropertyRef(AST property, FromElement fromElement) {
    AST dot = getASTFactory().create( DOT, "{non-qualified-property-ref}" );
    // TODO : better way?!?
    ( ( DotNode ) dot ).setPropertyPath( ( ( FromReferenceNode ) property ).getPath() );

    IdentNode syntheticAlias = ( IdentNode ) getASTFactory().create( IDENT, "{synthetic-alias}" );
    syntheticAlias.setFromElement( fromElement );
    syntheticAlias.setResolved();

    dot.setFirstChild( syntheticAlias );
    dot.addChild( property );

    return dot;
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  public void processConstant(AST constant, boolean resolveIdent) throws SemanticException {
    // If the constant is an IDENT, figure out what it means...
    boolean isIdent = ( constant.getType() == IDENT || constant.getType() == WEIRD_IDENT );
    if ( resolveIdent && isIdent && isAlias( constant.getText() ) ) { // IDENT is a class alias in the FROM.
      IdentNode ident = ( IdentNode ) constant;
      // Resolve to an identity column.
      ident.resolve(false, true);
    }
    else // IDENT might be the name of a class.
      Queryable queryable = walker.getSessionFactoryHelper().findQueryableUsingImports( constant.getText() );
      if ( isIdent && queryable != null ) {
        constant.setText( queryable.getDiscriminatorSQLValue() );
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  private AST generateSyntheticDotNodeForNonQualifiedPropertyRef(AST property, FromElement fromElement) {
    AST dot = getASTFactory().create( DOT, "{non-qualified-property-ref}" );
    // TODO : better way?!?
    ( ( DotNode ) dot ).setPropertyPath( ( ( FromReferenceNode ) property ).getPath() );

    IdentNode syntheticAlias = ( IdentNode ) getASTFactory().create( IDENT, "{synthetic-alias}" );
    syntheticAlias.setFromElement( fromElement );
    syntheticAlias.setResolved();

    dot.setFirstChild( syntheticAlias );
    dot.addChild( property );

    return dot;
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  private AST generateSyntheticDotNodeForNonQualifiedPropertyRef(AST property, FromElement fromElement) {
    AST dot = getASTFactory().create( DOT, "{non-qualified-property-ref}" );
    // TODO : better way?!?
    ( ( DotNode ) dot ).setPropertyPath( ( ( FromReferenceNode ) property ).getPath() );

    IdentNode syntheticAlias = ( IdentNode ) getASTFactory().create( IDENT, "{synthetic-alias}" );
    syntheticAlias.setFromElement( fromElement );
    syntheticAlias.setResolved();

    dot.setFirstChild( syntheticAlias );
    dot.addChild( property );

    return dot;
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  public void processConstant(AST constant, boolean resolveIdent) throws SemanticException {
    // If the constant is an IDENT, figure out what it means...
    boolean isIdent = ( constant.getType() == IDENT || constant.getType() == WEIRD_IDENT );
    if ( resolveIdent && isIdent && isAlias( constant.getText() ) ) { // IDENT is a class alias in the FROM.
      IdentNode ident = ( IdentNode ) constant;
      // Resolve to an identity column.
      ident.resolve(false, true);
    }
    else // IDENT might be the name of a class.
      Queryable queryable = walker.getSessionFactoryHelper().findQueryableUsingImports( constant.getText() );
      if ( isIdent && queryable != null ) {
        constant.setText( queryable.getDiscriminatorSQLValue() );
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  public void processConstant(AST constant, boolean resolveIdent) throws SemanticException {
    // If the constant is an IDENT, figure out what it means...
    boolean isIdent = ( constant.getType() == IDENT || constant.getType() == WEIRD_IDENT );
    if ( resolveIdent && isIdent && isAlias( constant.getText() ) ) { // IDENT is a class alias in the FROM.
      IdentNode ident = ( IdentNode ) constant;
      // Resolve to an identity column.
      ident.resolve(false, true);
    }
    else // IDENT might be the name of a class.
      Queryable queryable = walker.getSessionFactoryHelper().findQueryableUsingImports( constant.getText() );
      if ( isIdent && queryable != null ) {
        constant.setText( queryable.getDiscriminatorSQLValue() );
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  private AST generateSyntheticDotNodeForNonQualifiedPropertyRef(AST property, FromElement fromElement) {
    AST dot = getASTFactory().create( DOT, "{non-qualified-property-ref}" );
    // TODO : better way?!?
    ( ( DotNode ) dot ).setPropertyPath( ( ( FromReferenceNode ) property ).getPath() );

    IdentNode syntheticAlias = ( IdentNode ) getASTFactory().create( IDENT, "{synthetic-alias}" );
    syntheticAlias.setFromElement( fromElement );
    syntheticAlias.setResolved();

    dot.setFirstChild( syntheticAlias );
    dot.addChild( property );

    return dot;
View Full Code Here

Examples of org.hibernate.hql.ast.tree.IdentNode

  private AST generateSyntheticDotNodeForNonQualifiedPropertyRef(AST property, FromElement fromElement) {
    AST dot = getASTFactory().create( DOT, "{non-qualified-property-ref}" );
    // TODO : better way?!?
    ( ( DotNode ) dot ).setPropertyPath( ( ( FromReferenceNode ) property ).getPath() );

    IdentNode syntheticAlias = ( IdentNode ) getASTFactory().create( IDENT, "{synthetic-alias}" );
    syntheticAlias.setFromElement( fromElement );
    syntheticAlias.setResolved();

    dot.setFirstChild( syntheticAlias );
    dot.addChild( property );

    return dot;
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.