Package org.eclipse.imp.pdb.facts.type

Examples of org.eclipse.imp.pdb.facts.type.Type.accept()


    RandomValueTypeVisitor v = new RandomValueTypeVisitor(
        getValueFactory(), (ModuleEnvironment) getEnv().getRoot(),
        maxDepth.intValue(), generators, ctx.getCurrentEnvt().getTypeBindings());

    IValue returnVal = instantiatedReturnType.accept(v);

    return makeResult(instantiatedReturnType, returnVal, eval);

  }
View Full Code Here


          result[i] = null;
        }
        continue;
      }

      result[i] = currentType.accept(new DefaultTypeVisitor<IValue, RuntimeException>((IValue)null) {
        @Override
        public IValue visitString(Type type) throws RuntimeException {
          return values.string(field);
        }
        @Override
View Full Code Here

  }
 
  @SuppressWarnings("unchecked")
  public static <T extends IValue> Result<T> nothing() {
    Type type = TypeFactory.getInstance().voidType();
    return (Result<T>) type.accept(new Visitor(type, null, null));
  }
 
  @SuppressWarnings("unchecked")
  public static <T extends IValue> Result<T> nothing(Type type) {
    return (Result<T>) type.accept(new Visitor(type, null, null));
View Full Code Here

          result[i] = null;
        }
        continue;
      }

      result[i] = currentType.accept(new DefaultTypeVisitor<IValue, RuntimeException>((IValue)null) {
        @Override
        public IValue visitString(Type type) throws RuntimeException {
          return values.string(field);
        }
        @Override
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.