bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
| 3,234,954
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
| 3,234,955
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
| 3,234,956
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
| 3,234,957
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
| 3,234,958
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
|
public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } }
| 3,234,959
|
public void addMethod(RubyId id, Node node, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } Node body = new NodeFactory(getRuby()).newMethod(node, noex); methods.put(id, body); }
|
public void addMethod(RubyId id, Node node, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } Node body = new NodeFactory(getRuby()).newMethod(node, noex); methods.put(id, body); }
| 3,234,960
|
public void addMethod(RubyId id, Node node, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } Node body = new NodeFactory(getRuby()).newMethod(node, noex); methods.put(id, body); }
|
public void addMethod(RubyId id, Node node, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't define method"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } Node body = new NodeFactory(getRuby()).newMethod(node, noex); methods.put(id, body); }
| 3,234,961
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,962
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,963
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,964
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,965
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,966
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,967
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,968
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,969
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
| 3,234,970
|
public RubyModule alias_method(RubyObject newId, RubyObject oldId) { aliasMethod(newId.toId(), oldId.toId()); return this; }
|
public RubyModule alias_method(RubyObject newId, RubyObject oldId) { aliasMethod(newId.toId(), oldId.toId()); return this; }
| 3,234,971
|
public RubyModule alias_method(RubyObject newId, RubyObject oldId) { aliasMethod(newId.toId(), oldId.toId()); return this; }
|
public RubyModule alias_method(RubyObject newId, RubyObject oldId) { aliasMethod(newId.toId(), oldId.toId()); return this; }
| 3,234,972
|
public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } }
|
public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } }
| 3,234,973
|
public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } }
|
public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } }
| 3,234,974
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,975
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,976
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,977
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,978
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,979
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,980
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,981
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,982
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
|
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); }
| 3,234,983
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,984
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,985
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,986
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,987
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,988
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,989
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
|
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
| 3,234,990
|
public void declareClassVar(RubyId id, RubyObject value) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { if (tmp.isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't modify class variable"); } tmp.getInstanceVariables().put(id, value); } tmp = tmp.getSuperClass(); } setAv(id, value, false); }
|
public void declareClassVar(RubyId id, RubyObject value) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { if (tmp.isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't modify class variable"); } tmp.getInstanceVariables().put(id, value); } tmp = tmp.getSuperClass(); } setAv(id, value, false); }
| 3,234,991
|
public void defineAlias(String oldName, String newName) { }
|
public void defineAlias(String oldName, String newName) { }
| 3,234,992
|
public void defineAttribute(String name, boolean read, boolean write) { }
|
public void defineAttribute(String name, boolean read, boolean write) { }
| 3,234,993
|
public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; }
|
public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; }
| 3,234,994
|
public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; }
|
public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; }
| 3,234,995
|
public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; }
|
public RubyClass defineClassUnder(String name, RubyClass superClass) { RubyClass newClass = getRuby().defineClassId(getRuby().intern(name), superClass); setConstant(getRuby().intern(name), newClass); newClass.setClassPath(this, name); return newClass; }
| 3,234,996
|
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
|
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
| 3,234,997
|
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
|
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
| 3,234,998
|
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
|
public void defineClassVariable(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(id, value); }
| 3,234,999
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
| 3,235,000
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
| 3,235,001
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
| 3,235,002
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
|
public void defineConstant(String name, RubyObject value) { RubyId id = getRuby().intern(name); if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!id.isConstId()) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(id, value); }
| 3,235,003
|
public void defineMethod(String name, RubyCallbackMethod method) { RubyId id = getRuby().intern(name); int noex = (name.charAt(0) == 'i' && id == getRuby().intern("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod( id, new NodeFactory(getRuby()).newCFunc(method), noex | Constants.NOEX_CFUNC); }
|
public void defineMethod(String name, RubyCallbackMethod method) { RubyId id = getRuby().intern(name); int noex = (name.charAt(0) == 'i' && id == getRuby().intern("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod( id, new NodeFactory(getRuby()).newCFunc(method), noex | Constants.NOEX_CFUNC); }
| 3,235,004
|
public void defineMethod(String name, RubyCallbackMethod method) { RubyId id = getRuby().intern(name); int noex = (name.charAt(0) == 'i' && id == getRuby().intern("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod( id, new NodeFactory(getRuby()).newCFunc(method), noex | Constants.NOEX_CFUNC); }
|
public void defineMethod(String name, RubyCallbackMethod method) { RubyId id = getRuby().intern(name); int noex = (name.charAt(0) == 'i' && id == getRuby().intern("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod( id, new NodeFactory(getRuby()).newCFunc(method), noex | Constants.NOEX_CFUNC); }
| 3,235,005
|
public void defineMethod(String name, RubyCallbackMethod method) { RubyId id = getRuby().intern(name); int noex = (name.charAt(0) == 'i' && id == getRuby().intern("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod( id, new NodeFactory(getRuby()).newCFunc(method), noex | Constants.NOEX_CFUNC); }
|
public void defineMethod(String name, RubyCallbackMethod method) { RubyId id = getRuby().intern(name); int noex = (name.charAt(0) == 'i' && id == getRuby().intern("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod( id, new NodeFactory(getRuby()).newCFunc(method), noex | Constants.NOEX_CFUNC); }
| 3,235,006
|
public void defineMethodId(RubyId id, RubyCallbackMethod method) { addMethod( id, new NodeFactory(getRuby()).newCFunc(method), Constants.NOEX_PUBLIC | Constants.NOEX_CFUNC); }
|
public void defineMethodId(RubyId id, RubyCallbackMethod method) { addMethod( id, new NodeFactory(getRuby()).newCFunc(method), Constants.NOEX_PUBLIC | Constants.NOEX_CFUNC); }
| 3,235,007
|
public void defineModuleFunction(String name, RubyCallbackMethod method) { definePrivateMethod(name, method); defineSingletonMethod(name, method); }
|
public void defineModuleFunction(String name, RubyCallbackMethod method) { definePrivateMethod(name, method); defineSingletonMethod(name, method); }
| 3,235,008
|
public RubyModule defineModuleUnder(String name) { RubyModule newModule = getRuby().defineModuleId(getRuby().intern(name)); setConstant(getRuby().intern(name), newModule); newModule.setClassPath(this, name); return newModule; }
|
public RubyModule defineModuleUnder(String name) { RubyModule newModule = getRuby().defineModuleId(getRuby().intern(name)); setConstant(getRuby().intern(name), newModule); newModule.setClassPath(this, name); return newModule; }
| 3,235,009
|
public RubyModule defineModuleUnder(String name) { RubyModule newModule = getRuby().defineModuleId(getRuby().intern(name)); setConstant(getRuby().intern(name), newModule); newModule.setClassPath(this, name); return newModule; }
|
public RubyModule defineModuleUnder(String name) { RubyModule newModule = getRuby().defineModuleId(getRuby().intern(name)); setConstant(getRuby().intern(name), newModule); newModule.setClassPath(this, name); return newModule; }
| 3,235,010
|
public RubyModule defineModuleUnder(String name) { RubyModule newModule = getRuby().defineModuleId(getRuby().intern(name)); setConstant(getRuby().intern(name), newModule); newModule.setClassPath(this, name); return newModule; }
|
public RubyModule defineModuleUnder(String name) { RubyModule newModule = getRuby().defineModuleId(getRuby().intern(name)); setConstant(getRuby().intern(name), newModule); newModule.setClassPath(this, name); return newModule; }
| 3,235,011
|
public void definePrivateMethod(String name, RubyCallbackMethod method) { addMethod( getRuby().intern(name), new NodeFactory(getRuby()).newCFunc(method), Constants.NOEX_PRIVATE | Constants.NOEX_CFUNC); }
|
public void definePrivateMethod(String name, RubyCallbackMethod method) { addMethod( getRuby().intern(name), new NodeFactory(getRuby()).newCFunc(method), Constants.NOEX_PRIVATE | Constants.NOEX_CFUNC); }
| 3,235,012
|
public void defineProtectedMethod(String name, RubyCallbackMethod method) { addMethod( getRuby().intern(name), new NodeFactory(getRuby()).newCFunc(method), Constants.NOEX_PROTECTED | Constants.NOEX_CFUNC); }
|
public void defineProtectedMethod(String name, RubyCallbackMethod method) { addMethod( getRuby().intern(name), new NodeFactory(getRuby()).newCFunc(method), Constants.NOEX_PROTECTED | Constants.NOEX_CFUNC); }
| 3,235,013
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
| 3,235,014
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
| 3,235,015
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
| 3,235,016
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
| 3,235,017
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
|
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode body = searchMethod(name); RubyModule origin = body.getMethodOrigin(); if (body == null && isModule()) { body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = body.getMethodOrigin(); } if (body == null) { } if (body.getNoex() != noex) { if (this == origin) { body.setNoex(noex); } else { addMethod(name, new NodeFactory(getRuby()).newZSuper(), noex); } } }
| 3,235,018
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
| 3,235,019
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
| 3,235,020
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
| 3,235,021
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
|
public RubyObject findClassPath() { FindClassPathResult arg = new FindClassPathResult(); arg.klass = this; arg.track = getRuby().getClasses().getObjectClass(); arg.prev = null; if (getRuby().getClasses().getObjectClass().getInstanceVariables() != null) { getRuby().getClasses().getObjectClass().getInstanceVariables().foreach( new FindClassPathMapMethod(), arg); } if (arg.name == null) { getRuby().getClasses().getClassMap().foreach(new FindClassPathMapMethod(), arg); } if (arg.name != null) { getInstanceVariables().put(getRuby().intern("__classpath__"), arg.path); return arg.path; } return getRuby().getNil(); }
| 3,235,022
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
| 3,235,023
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
| 3,235,024
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
| 3,235,025
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
|
public RubyString getClassPath() { RubyString path = getClassname(); if (path != null) { return path; } String s = "Module"; if (isClass()) { s = "Class"; } return RubyString.m_newString( getRuby(), "<" + s + " 01x" + Integer.toHexString(hashCode()) + ">"); // 0 = pointer }
| 3,235,026
|
public RubyObject getClassVar(RubyId id) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } tmp = tmp.getSuperClass(); } throw new RubyNameException( getRuby(), "uninitialized class variable " + id.toName() + " in " + toName()); }
|
public RubyObject getClassVar(RubyId id) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } tmp = tmp.getSuperClass(); } throw new RubyNameException( getRuby(), "uninitialized class variable " + id.toName() + " in " + toName()); }
| 3,235,027
|
public RubyModule getClassVarSingleton() { return this; }
|
public RubyModule getClassVarSingleton() { return this; }
| 3,235,028
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,029
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,030
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,031
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,032
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,033
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,034
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,035
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,036
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,037
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
|
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
| 3,235,038
|
public RubyArray getConstAt(RubyArray ary) { RubyMapMethod sv_i = new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { if (((RubyId) key).isConstId()) { RubyString name = RubyString.m_newString(getRuby(), ((RubyId) key).toName()); if (((RubyArray) arg).m_includes(name).isFalse()) { ((RubyArray) arg).m_push(name); } } return RubyMapMethod.CONTINUE; } }; if (getInstanceVariables() != null) { getInstanceVariables().foreach(sv_i, ary); } if (this == getRuby().getClasses().getObjectClass()) { getRuby().getClasses().getClassMap().foreach(sv_i, ary); /*if (autoload_tbl) { st_foreach(autoload_tbl, autoload_i, ary); }*/ } return ary; }
|
public RubyArray getConstAt(RubyArray ary) { RubyMapMethod sv_i = new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { if (((RubyId) key).isConstId()) { RubyString name = RubyString.m_newString(getRuby(), ((RubyId) key).toName()); if (((RubyArray) arg).m_includes(name).isFalse()) { ((RubyArray) arg).m_push(name); } } return RubyMapMethod.CONTINUE; } }; if (getInstanceVariables() != null) { getInstanceVariables().foreach(sv_i, ary); } if (this == getRuby().getClasses().getObjectClass()) { getRuby().getClasses().getClassMap().foreach(sv_i, ary); /*if (autoload_tbl) { st_foreach(autoload_tbl, autoload_i, ary); }*/ } return ary; }
| 3,235,039
|
public RubyArray getConstAt(RubyArray ary) { RubyMapMethod sv_i = new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { if (((RubyId) key).isConstId()) { RubyString name = RubyString.m_newString(getRuby(), ((RubyId) key).toName()); if (((RubyArray) arg).m_includes(name).isFalse()) { ((RubyArray) arg).m_push(name); } } return RubyMapMethod.CONTINUE; } }; if (getInstanceVariables() != null) { getInstanceVariables().foreach(sv_i, ary); } if (this == getRuby().getClasses().getObjectClass()) { getRuby().getClasses().getClassMap().foreach(sv_i, ary); /*if (autoload_tbl) { st_foreach(autoload_tbl, autoload_i, ary); }*/ } return ary; }
|
public RubyArray getConstAt(RubyArray ary) { RubyMapMethod sv_i = new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { if (((RubyId) key).isConstId()) { RubyString name = RubyString.m_newString(getRuby(), ((RubyId) key).toName()); if (((RubyArray) arg).m_includes(name).isFalse()) { ((RubyArray) arg).m_push(name); } } return RubyMapMethod.CONTINUE; } }; if (getInstanceVariables() != null) { getInstanceVariables().foreach(sv_i, ary); } if (this == getRuby().getClasses().getObjectClass()) { getRuby().getClasses().getClassMap().foreach(sv_i, ary); /*if (autoload_tbl) { st_foreach(autoload_tbl, autoload_i, ary); }*/ } return ary; }
| 3,235,040
|
public int execute(Object key, Object value, Object arg) { if (((RubyId) key).isConstId()) { RubyString name = RubyString.m_newString(getRuby(), ((RubyId) key).toName()); if (((RubyArray) arg).m_includes(name).isFalse()) { ((RubyArray) arg).m_push(name); } } return RubyMapMethod.CONTINUE; }
|
public int execute(Object key, Object value, Object arg) { if (((RubyId) key).isConstId()) { RubyString name = RubyString.m_newString(getRuby(), ((RubyId) key).toName()); if (((RubyArray) arg).m_includes(name).isFalse()) { ((RubyArray) arg).m_push(name); } } return RubyMapMethod.CONTINUE; }
| 3,235,041
|
public RubyArray getConstOf(RubyArray ary) { RubyModule klass = this; while (klass != null) { getConstAt(ary); klass = klass.getSuperClass(); } return ary; }
|
public RubyArray getConstOf(RubyArray ary) { RubyModule klass = this; while (klass != null) { getConstAt(ary); klass = klass.getSuperClass(); } return ary; }
| 3,235,042
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
| 3,235,043
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
| 3,235,044
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
| 3,235,045
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
|
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); } if (tmp == getRuby().getClasses().getObjectClass() && getRuby().getTopConstant(id) != null) { return getRuby().getTopConstant(id); } tmp = tmp.getSuperClass(); } if (!mod_retry && isModule()) { mod_retry = true; tmp = getRuby().getClasses().getObjectClass(); continue; } break; } /* Uninitialized constant */ if (this != getRuby().getClasses().getObjectClass()) { throw new RubyNameException( getRuby(), "uninitialized constant " + id.toName() + " at " + getClassPath().getValue()); } else { throw new RubyNameException(getRuby(), "uninitialized constant " + id.toName()); } // return getRuby().getNil(); }
| 3,235,046
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,047
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,048
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,049
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,050
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,051
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,052
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
|
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
| 3,235,053
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.