Package com.getperka.flatpack.policy.pst

Examples of com.getperka.flatpack.policy.pst.Ident


    }

    @SuppressWarnings({ "rawtypes", "unchecked" })
    @Override
    public boolean visit(Ident<?> x) {
      Ident n;
      if (x.isCompound()) {
        n = new Ident(x.getReferentType(), x.getCompoundName());
      } else if (x.isSimple()) {
        n = new Ident(x.getReferentType(), x.getSimpleName());
      } else {
        throw new UnsupportedOperationException();
      }
      n.setReferent(x.getReferent());
      stack.push(n);
      return false;
    }
View Full Code Here


    /*
     * Synthesize an empty TypePolicy on the second pass to stub out any types that are implicitly
     * referenced through property chains but that do not have their own type policy.
     */
    if (toReturn == null && secondPass) {
      Ident ident = new Ident(Class.class, typeName);
      toReturn = new TypePolicy();
      toReturn.setName(ident);
      ensureReferent(ident);
      scope().put(toReturn);
    }
View Full Code Here

TOP

Related Classes of com.getperka.flatpack.policy.pst.Ident

Copyright © 2018 www.massapicom. 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.