Examples of JVMDefinedObjectType


Examples of st.gravel.support.compiler.jvm.JVMDefinedObjectType

    }
  }

  @Override
  public Class writeClass_(JVMClass jvmClass) {
    JVMDefinedObjectType key = jvmClass.type();
    CompiledClass current = jvmClasses.get(key);
    if (current == null) {
      current = new CompiledClass(jvmClass,
          new ASMClassWriter(jvmClass).createClass());
      jvmClasses.put(key, current);
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMDefinedObjectType

    return current.javaClass;
  }

  @Override
  public SystemMappingCompilerTools runAstInit_(JVMClass jvmClass) {
    JVMDefinedObjectType key = jvmClass.type();
    CompiledClass current = jvmClasses.get(key);

    Object[] astConstants = jvmClass.astConstants();
    if (astConstants.length == 0)
      return this;
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMDefinedObjectType

    });
    return this;
  }

  public JVMMethodCompiler producePrimitive_def_(final MethodNode _aMethodNode, final String[] _prim) {
    final JVMDefinedObjectType _ownerType;
    final String _name;
    final Invoke _invoke;
    final JVMMethodType[] _staticSignature;
    final int[] _selfOffset;
    _selfOffset = new int[1];
    _staticSignature = new JVMMethodType[1];
    _ownerType = JVMDefinedObjectType.factory.dottedClassName_(_prim[0]);
    _name = _prim[1];
    _invoke = _parent.createInvokeInstruction_name_numArgs_(_ownerType, _name, _aMethodNode.arguments().length);
    if (_invoke == null) {
      JVMMethodCompiler.this.emit_(NewInstance.factory.type_(JVMDefinedObjectType.factory.runtimeException()));
      JVMMethodCompiler.this.emit_(Dup.factory.basicNew());
      JVMMethodCompiler.this.pushString_("Cannot find method " + _ownerType.descriptorString() + ">>" + _name);
      JVMMethodCompiler.this.emit_(InvokeSpecial.factory.init_voidArguments_(JVMDefinedObjectType.factory.runtimeException(), st.gravel.support.jvm.ArrayFactory.with_(JVMDefinedObjectType.factory.string())));
      JVMMethodCompiler.this.emit_(AThrow.factory.basicNew());
      return JVMMethodCompiler.this;
    }
    _staticSignature[0] = _invoke.staticSignature();
View Full Code Here

Examples of st.gravel.support.compiler.jvm.JVMDefinedObjectType

  public JVMClass[] compileExpressionSource_(final String _source) {
    return this.compileExpression_reference_(Parser.factory.parseExpression_(_source), Reference.factory.value_("st.gravel.lang.UndefinedObject"));
  }

  public JVMClass[] compileExpression_reference_(final Node _anExpression, final Reference _aReference) {
    final JVMDefinedObjectType _ownerType;
    final BlockNode _fieldAccessed;
    final BlockInnerClass _aBlockInnerClass;
    final BlockNode _intermediate;
    final BlockNode _holderized;
    final JVMClassCompiler _jvmClassCompiler;
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.