Examples of reference()


Examples of st.gravel.support.compiler.ast.ClassMapping.reference()

  public static ClassDescriptionMirror getClassMirror(
      Class<? extends Object> aClass) {
    ClassMapping classMapping = ImageBootstrapper.systemMapping
        .classMappingForJavaClass_(aClass);
    return ClassDescriptionMirror.forReference(classMapping.reference());
  }

  public static ClassDescriptionMirror getNilClassMirror() {
    ClassMapping classMapping = ImageBootstrapper.systemMapping
        .nilClassMapping();
View Full Code Here

Examples of st.gravel.support.compiler.ast.ClassMapping.reference()

  }

  public static ClassDescriptionMirror getNilClassMirror() {
    ClassMapping classMapping = ImageBootstrapper.systemMapping
        .nilClassMapping();
    return ClassDescriptionMirror.forReference(classMapping.reference());
  }
}
View Full Code Here

Examples of st.gravel.support.compiler.ast.ClassMapping.reference()

  }

  public static String classTitle(ObjectClass receiver) {
    ClassMapping cm = ImageBootstrapper.systemMapping
        .classMappingForJavaClass_(receiver.getClass());
    return cm.reference().nonmeta().toString();
  }

  public static Object perform_(Object receiver, Symbol selector)
      throws Throwable {
    return MethodTools.perform(receiver, selector);
View Full Code Here

Examples of st.gravel.support.compiler.ast.ClassMapping.reference()

          }
        }
        return SystemMapping.this;
      }
    });
    _classNode = ClassNode.factory.name_superclassPath_properties_instVars_classInstVars_sharedVariables_methods_classMethods_namespace_isExtension_isTrait_traitUsage_classTraitUsage_(_superMapping.classNode().name(), _superMapping.reference().toString(), new java.util.HashMap<String, String>(), new VariableDeclarationNode[] {}, new VariableDeclarationNode[] {}, new SharedDeclarationNode[] {}, new MethodNode[] {}, new MethodNode[] {}, _superMapping.classNode().namespace(), false, false, EmptyTraitUsageNode.factory.basicNew(), EmptyTraitUsageNode.factory.basicNew());
    return ClassMapping.factory.identityMapping_extensions_instVarMappings_classNode_(IdentityClassPartMapping.factory.javaClass_isGenerated_(_receiverClass, false).withMethodMappings_(_methodMappings[0]), new ExtensionClassPartMapping[] {}, new java.util.HashMap<String, InstVarMapping>(), _classNode);
  }

  public SystemMappingUpdater newSystemMappingUpdater() {
    return SystemMappingUpdater.factory.systemMapping_compilerTools_(this, _compilerTools);
View Full Code Here

Examples of st.gravel.support.compiler.ast.ClassNode.reference()

    SystemDefinitionNode systemDefinitionNode = ImageBootstrapper.systemMapping
        .systemDefinitionNode();
    ImageBootstrapper.systemMapping.updateTo_(systemDefinitionNode
        .withPackageNamed_classNode_(Symbol.value(name), classNode));
    return ImageBootstrapper.systemMapping.classMappingAtReference_(
        classNode.reference()).identityClass();
  }

  public static Object evaluate(String string) {

    Class stClass = new ClassBuilder("Evaluate" + evaluateCounter++)
View Full Code Here

Examples of st.gravel.support.compiler.ast.SuperNode.reference()

      final JVMMethodType _superSig;
      JVMMethodCompiler.this.ensureCast_(_parent.selfType());
      _superFN = "access$" + _functionName;
      _superSig = JVMMethodType.factory.dynamic_(_messageNode.numArgs()).copyWithFirst_(_parent.selfType());
      JVMMethodCompiler.this.emit_(InvokeStatic.factory.ownerType_name_signature_(_parent.ownerType(), _superFN, _superSig));
      _parent.addInvokeSuper_functionName_numArgs_superReference_superSig_(_superFN, _functionName, _selector.numArgs(), _superNode.reference().toString(), _superSig);
    } else {
      JVMMethodCompiler.this.emit_(DynamicSuperSend.factory.functionName_numArgs_superReference_(_functionName, _selector.numArgs(), _superNode.reference().toString()));
    }
    return this;
  }
View Full Code Here

Examples of st.gravel.support.compiler.ast.SuperNode.reference()

      _superFN = "access$" + _functionName;
      _superSig = JVMMethodType.factory.dynamic_(_messageNode.numArgs()).copyWithFirst_(_parent.selfType());
      JVMMethodCompiler.this.emit_(InvokeStatic.factory.ownerType_name_signature_(_parent.ownerType(), _superFN, _superSig));
      _parent.addInvokeSuper_functionName_numArgs_superReference_superSig_(_superFN, _functionName, _selector.numArgs(), _superNode.reference().toString(), _superSig);
    } else {
      JVMMethodCompiler.this.emit_(DynamicSuperSend.factory.functionName_numArgs_superReference_(_functionName, _selector.numArgs(), _superNode.reference().toString()));
    }
    return this;
  }

  public JVMMethodCompiler produceToDoNodeConstantStep_step_(final ToDoNode _toDoNode, final int _step) {
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.