Examples of type()


Examples of sizzle.aggregators.AggregatorSpec.type()

    if (!clazz.isAnnotationPresent(AggregatorSpec.class))
      return;

    final AggregatorSpec annotation = clazz.getAnnotation(AggregatorSpec.class);

    final String type = annotation.type();
    if (type.equals("any"))
      this.aggregators.put(annotation.name(), clazz);
    else
      this.aggregators.put(annotation.name() + ":" + type, clazz);
  }
View Full Code Here

Examples of soot.SootFieldRef.type()

                    if (value instanceof FieldRef) {
                        // Fix references to fields
                        FieldRef r = (FieldRef) value;
                        SootFieldRef fieldRef = r.getFieldRef();
                        if (fieldRef.type() instanceof RefType) {
                            RefType fieldType = (RefType) fieldRef.type();
                            SootClass fieldClass = fieldType.getSootClass();
                            if (fieldClass == oldClass) {
                                r.setFieldRef(Scene.v().makeFieldRef(
                                        fieldRef.declaringClass(),
View Full Code Here

Examples of spoon.reflect.Factory.Type()

      Class<?> clazz, String methodName) {
    CtTypeReference<?> type = instance.getConcreteType();
    CtMethod<?> method = null;
    if (clazz.isAssignableFrom(type.getActualClass())) {
      Factory factory = type.getFactory();
      CtSimpleType<?> simpleType = factory.Type().getFactory().Class()
          .create(type.getQualifiedName());
      method = ((CtType<?>) simpleType).getMethod(methodName, factory
          .Type().createReference(clazz));
    }
    return method;
View Full Code Here

Examples of st.gravel.support.compiler.ast.VariableDeclarationNode.type()

    if (this.includesLocalName_(_anObject.variable().name())) {
      return LocalWriteNode.factory.name_value_(_anObject.variable().name(), ((Expression) VariableAccessToFieldAccessConverter.this.visit_(_anObject.value())));
    }
    _instVar = this.instVarAt_(_anObject.variable().name());
    if (_instVar != null) {
      return FieldWriteNode.factory.owner_field_type_value_(_owner, _instVar.name(), _instVar.type(), ((Expression) VariableAccessToFieldAccessConverter.this.visit_(_anObject.value())));
    }
    return GlobalWriteNode.factory.namespace_name_value_(_namespace, _anObject.variable().name(), ((Expression) this.visit_(_anObject.value())));
  }

  @Override
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMLocalDeclaration.type()

  }

  public JVMMethodCompiler localStore_(final String _localName) {
    final JVMLocalDeclaration _local;
    _local = _locals.get(_localName);
    this.ensureCast_(_local.type());
    this.emit_(((JVMInstruction) Store.factory.local_(_local)));
    return this;
  }

  public Frame newFrame_(final st.gravel.support.jvm.Block0<Object> _aBlock) {
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMVariable.type()

    _read0[0] = Load.factory.index_type_(0, _block.ownerType());
    for (int _temp1 = 0; _temp1 < _block.copiedVariables().length; _temp1++) {
      final int _i = _temp1 + 1;
      final JVMVariable _elem = _block.copiedVariables()[_temp1];
      _instructions[0].add(_read0[0]);
      _instructions[0].add(Load.factory.index_type_(_i, _elem.type()));
      _instructions[0].add(PutField.factory.ownerType_name_type_(_block.ownerType(), _elem.varName(), _elem.type()));
    }
    _instructions[0].add(_read0[0]);
    _instructions[0].add(InvokeSpecial.factory.init_voidArguments_(this.superType(), new JVMType[] {}));
    _instructions[0].add(Return.factory.basicNew());
View Full Code Here

Examples of weka.core.Attribute.type()

      Attribute attribute = (Attribute) enu.nextElement();

      // If the attribute is numeric, determine the estimator
      // numeric precision from differences between adjacent values
      double numPrecision = DEFAULT_NUM_PRECISION;
      if (attribute.type() == Attribute.NUMERIC) {
  m_Instances.sort(attribute);
  if ((m_Instances.numInstances() > 0)
      && !m_Instances.instance(0).isMissing(attribute)) {
    double lastVal = m_Instances.instance(0).value(attribute);
    double currentVal, deltaSum = 0;
View Full Code Here

Examples of wyil.lang.Constant.type()

        String name = "constant$" + index;
        ArrayList<Modifier> fmods = new ArrayList<Modifier>();
        fmods.add(Modifier.ACC_PRIVATE);
        fmods.add(Modifier.ACC_STATIC);
        fmods.add(Modifier.ACC_FINAL);
        JvmType type = convertType(constant.type());
        ClassFile.Field field = new ClassFile.Field(name, type, fmods);
        cf.fields().add(field);

        // Now, create code to intialise this field
        translate(constant,0,lambdas,bytecodes);
View Full Code Here

Examples of wyil.lang.WyilFile.type()

    WhileyFile wf = builder.getSourceFile(key.module());
    if (wf == null) {
      // indicates a non-local key which we can resolve immediately

      WyilFile mi = builder.getModule(key.module());
      WyilFile.TypeDeclaration td = mi.type(key.name());
      return append(td.type(), states);
    }

    WhileyFile.Type td = wf.typeDecl(key.name());
    if (td == null) {
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.