FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jruby/core/src/main/java/org/jruby/util/NClassClassLoader.java at master · jruby/jruby · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
jruby
/
jruby
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
946
Star
3.9k
Code
Issues
840
Pull requests
109
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
jruby
/
core
/
src
/
main
/
java
/
org
/
jruby
/
util
/
NClassClassLoader.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (21 loc) · 659 Bytes
Breadcrumbs
jruby
/
core
/
src
/
main
/
java
/
org
/
jruby
/
util
/
NClassClassLoader.java
Copy path
File metadata and controls
25 lines (21 loc) · 659 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package
org
.
jruby
.
util
;
public
class
NClassClassLoader
extends
ClassLoader
implements
ClassDefiningClassLoader
{
private
final
int
size
;
private
int
i
;
public
NClassClassLoader
(
ClassLoader
parent
,
int
n
) {
super
(
parent
);
size
=
n
;
}
@
Override
public
Class
<?>
defineClass
(
String
name
,
byte
[]
bytes
) {
i
++;
return
super
.
defineClass
(
name
,
bytes
,
0
,
bytes
.
length
,
ClassDefiningJRubyClassLoader
.
DEFAULT_DOMAIN
);
}
@
Override
public
boolean
hasDefinedClass
(
String
name
) {
return
super
.
findLoadedClass
(
name
) !=
null
;
}
public
boolean
isFull
() {
return
i
>=
size
;
}
}
Back
|
FazBrowse Home
|
New Git URL