Examples of asJavaString()


Examples of org.jruby.RubySymbol.asJavaString()

                break;
            case 'e':
                RubySymbol moduleName = (RubySymbol) unmarshalObject();
                RubyModule tp = null;
                try {
                    tp = runtime.getClassFromPath(moduleName.asJavaString());
                } catch (RaiseException e) {
                    if (runtime.fastGetModule("NameError").isInstance(e.getException())) {
                        throw runtime.newArgumentError("undefined class/module " + moduleName.asJavaString());
                    }
                    throw e;
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

                RubyModule tp = null;
                try {
                    tp = runtime.getClassFromPath(moduleName.asJavaString());
                } catch (RaiseException e) {
                    if (runtime.fastGetModule("NameError").isInstance(e.getException())) {
                        throw runtime.newArgumentError("undefined class/module " + moduleName.asJavaString());
                    }
                    throw e;
                }

                rubyObj = unmarshalObject();
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

        RubyClass type = null;
        try {
            type = getClassFromPath(runtime, className.toString());
        } catch (RaiseException e) {
            if (runtime.fastGetModule("NameError").isInstance(e.getException())) {
                throw runtime.newArgumentError("undefined class/module " + className.asJavaString());
            }
               
            throw e;
        }
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

   
   
    private IRubyObject uclassUnmarshall() throws IOException {
      RubySymbol className = (RubySymbol)unmarshalObject();
     
      RubyClass type = (RubyClass)runtime.getClassFromPath(className.asJavaString());
     
        // All "C" marshalled objects descend from core classes, which are all RubyObject
      RubyObject result = (RubyObject)unmarshalObject();
     
      result.setMetaClass(type);
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

    // poweroff: VM ist vorhanden aber runtergefahren
    // running: VM läuft
    // saved: VM wurde pausiert
    try {
      RubySymbol symbol = (RubySymbol) vagrantVm.callMethod("state");
      return symbol.asJavaString();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

                break;
            case 'e':
                RubySymbol moduleName = (RubySymbol) unmarshalObject();
                RubyModule tp = null;
                try {
                    tp = runtime.getClassFromPath(moduleName.asJavaString());
                } catch (RaiseException e) {
                    if (runtime.fastGetModule("NameError").isInstance(e.getException())) {
                        throw runtime.newArgumentError("undefined class/module " + moduleName.asJavaString());
                    }
                    throw e;
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

                RubyModule tp = null;
                try {
                    tp = runtime.getClassFromPath(moduleName.asJavaString());
                } catch (RaiseException e) {
                    if (runtime.fastGetModule("NameError").isInstance(e.getException())) {
                        throw runtime.newArgumentError("undefined class/module " + moduleName.asJavaString());
                    }
                    throw e;
                }

                rubyObj = unmarshalObject();
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

        RubyClass type = null;
        try {
            type = getClassFromPath(runtime, className.toString());
        } catch (RaiseException e) {
            if (runtime.fastGetModule("NameError").isInstance(e.getException())) {
                throw runtime.newArgumentError("undefined class/module " + className.asJavaString());
            }

            throw e;
        }
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

    }

    private IRubyObject uclassUnmarshall() throws IOException {
        RubySymbol className = (RubySymbol)unmarshalObject(false);

        RubyClass type = (RubyClass)runtime.getClassFromPath(className.asJavaString());

        // All "C" marshalled objects descend from core classes, which are all RubyObject
        RubyObject result = (RubyObject)unmarshalObject();

        result.setMetaClass(type);
View Full Code Here

Examples of org.jruby.RubySymbol.asJavaString()

        if (!(method instanceof RubySymbol)) {
            throw ruby.newTypeError(method, ruby.getSymbol());
        }
        RubyClass rubyClass = (RubyClass) clazz;
        RubySymbol methodSym = (RubySymbol) method;
        return TypeConverter.convertToTypeOrRaise(object, rubyClass, methodSym.asJavaString());
    }
}
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.