Examples of Symbol


Examples of com.sun.tools.javac.code.Symbol

        boolean staticOnly = false;
        if (env1 != null) {
            while (env1 != null && env1.outer != null) {
                if (isStatic(env1)) staticOnly = true;
                if (env1.enclClass.sym.isSubClass(member.owner, types)) {
                    Symbol sym = env1.info.scope.lookup(name).sym;
                    if (sym != null) {
                        if (staticOnly) sym = new StaticError(sym);
                        return access(sym, pos, env.enclClass.sym.type,
                                      name, true);
                    }
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol

    private MethodResolutionPhase currentStep = null;

    private MethodResolutionPhase firstErroneousResolutionPhase() {
        MethodResolutionPhase bestSoFar = BASIC;
        Symbol sym = methodNotFound;
        List<MethodResolutionPhase> steps = methodResolutionSteps;
        while (steps.nonEmpty() &&
               steps.head.isApplicable(boxingEnabled, varargsEnabled) &&
               sym.kind >= WRONG_MTHS) {
            sym = methodResolutionCache.get(steps.head);
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol

                Type second = !isUnaryOp ? argtypes.tail.head : null;
                return diags.create(dkind, log.currentSource(), pos,
                        key, name, first, second);
            }
            else {
                Symbol ws = sym.asMemberOf(site, types);
                return diags.create(dkind, log.currentSource(), pos,
                          "cant.apply.symbol" + (explanation != null ? ".1" : ""),
                          kindName(ws),
                          ws.name == names.init ? ws.owner.name : ws.name,
                          methodArguments(ws.type.getParameterTypes()),
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol

        void clear() {
            candidates = List.nil();
        }

        private Name getName() {
            Symbol sym = candidates.head.sym;
            return sym.name == names.init ?
                sym.owner.name :
                sym.name;
        }
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol

            }

            @Override
            public boolean equals(Object o) {
                if (o instanceof Candidate) {
                    Symbol s1 = this.sym;
                    Symbol s2 = ((Candidate)o).sym;
                    if  ((s1 != s2 &&
                        (s1.overrides(s2, s1.owner.type.tsym, types, false) ||
                        (s2.overrides(s1, s2.owner.type.tsym, types, false)))) ||
                        ((s1.isConstructor() || s2.isConstructor()) && s1.owner != s2.owner))
                        return true;
                }
                return false;
            }
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol

    // where
        private TreeVisitor<Symbol,Env<AttrContext>> identAttributer = new IdentAttributer();
        private class IdentAttributer extends SimpleTreeVisitor<Symbol,Env<AttrContext>> {
            @Override
            public Symbol visitMemberSelect(MemberSelectTree node, Env<AttrContext> env) {
                Symbol site = visit(node.getExpression(), env);
                if (site.kind == ERR)
                    return site;
                Name name = (Name)node.getIdentifier();
                if (site.kind == PCK) {
                    env.toplevel.packge = (PackageSymbol)site;
                    return rs.findIdentInPackage(env, (TypeSymbol)site, name, TYP | PCK);
                } else {
                    env.enclClass.sym = (ClassSymbol)site;
                    return rs.findMemberType(env, site.asType(), name, (TypeSymbol)site);
                }
            }
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol

                Symbol location,
                Type site,
                Name name,
                List<Type> argtypes,
                List<Type> typeargtypes) {
            Symbol errSym = ((sym.kind == TYP && sym.type.tag == CLASS)
                ? types.erasure(sym.type).tsym
                : sym);
            return diags.create(dkind, log.currentSource(), pos,
                    "non-static.cant.be.ref", kindName(sym), errSym);
        }
View Full Code Here

Examples of de.halirutan.mathematica.parsing.psi.api.Symbol

   */
  public List<Symbol> getSymbols() {

    Collections.sort(mySymbols, new SymbolComparator());
    Pattern pattern = Pattern.compile(myStartElement.getSymbolName().substring(0, 1) + ".*");
    Symbol tmp = null;
    for (Iterator<Symbol> symbolIterator = mySymbols.iterator(); symbolIterator.hasNext(); ) {
      Symbol next = symbolIterator.next();

      if (!pattern.matcher(next.getSymbolName()).matches()) {
        symbolIterator.remove();
        continue;
      }

      if (tmp == null) {
        tmp = next;
        continue;
      }

      if (tmp.getSymbolName().equals(next.getSymbolName())) {
        symbolIterator.remove();
      } else {
        tmp = next;
      }

View Full Code Here

Examples of de.odysseus.el.tree.impl.Scanner.Symbol

   * dynmamic := <START_EVAL_DYNAMIC> expr <END_EVAL>
   * deferred := <START_EVAL_DEFERRED> expr <END_EVAL>
   */
  private AstEval eval(boolean required, boolean deferred) throws ScanException, ParseException {
    AstEval v = null;
    Symbol start_eval = deferred ? START_EVAL_DEFERRED : START_EVAL_DYNAMIC;
    if (symbol == start_eval) {
      consumeToken();
      v = new AstEval(expr(true), deferred);
      consumeToken(END_EVAL);
    } else if (required) {
View Full Code Here

Examples of de.undercouch.bson4jackson.types.Symbol

   * Reads a symbol object from the input stream
   * @return the symbol
   * @throws IOException if the symbol could not be read
   */
  protected Symbol readSymbol() throws IOException {
    return new Symbol(readString());
  }
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.