Package com.odiago.flumebase.exec

Examples of com.odiago.flumebase.exec.Symbol.resolveAliases()


    Symbol sym = symTab.resolve(mIdentifier);
    if (null == sym) {
      // Magic field or attribute.
      return Collections.singletonList(new TypedField("_" + mAssignedName, mType));
    } else {
      sym = sym.resolveAliases();
      String canonicalName = sym.getName();
      TypedField field = new TypedField(canonicalName, sym.getType(), mAssignedName, canonicalName);
      return Collections.singletonList(field);
    }
  }
View Full Code Here


    Symbol fnSymbol = symTab.resolve(mFunctionName);
    if (null == fnSymbol) {
      throw new TypeCheckException("No such function: " + mFunctionName);
    }

    fnSymbol = fnSymbol.resolveAliases();

    if (!(fnSymbol instanceof FnSymbol)) {
      // This symbol isn't a function call?
      throw new TypeCheckException("Symbol " + mFunctionName + " is not a function");
    }
View Full Code Here

    assert e1Sym != null;
    assert e2Sym != null;

    e1Sym = e1Sym.resolveAliases();
    e2Sym = e2Sym.resolveAliases();

    // We now have the symbols for the e1 and e2 sides of the BinExpr.
    // Determine which of these is from the left source and the right source.
    // Verify that both sources are represented here.
View Full Code Here

    // The field symbol should also be an AssignedSymbol that has a unique
    // reference name throughout the query. Bind to the reference name here;
    // the actual query uses this name instead of the user-friendly
    // identifier.
    fieldSym = fieldSym.resolveAliases();
    assert fieldSym instanceof AssignedSymbol;

    outSym.item = (AssignedSymbol) fieldSym;
  }
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.