Skip to content

Instantly share code, notes, and snippets.

@WebReflection
Last active May 19, 2018 10:08
Show Gist options
  • Save WebReflection/9627010 to your computer and use it in GitHub Desktop.
Save WebReflection/9627010 to your computer and use it in GitHub Desktop.
nashorn environment

global

parseInt
parseFloat
isNaN
isFinite
encodeURI
encodeURIComponent
decodeURI
decodeURIComponent
escape
unescape
print
load
loadWithNewGlobal
exit
quit
NaN
Infinity
undefined
eval
Object
Function
Array
String
Boolean
Number
Date
RegExp
JSON
JSAdapter
Math
Error
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
ArrayBuffer
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
Packages
com
edu
java
javafx
javax
org
JavaImporter
Java
__FILE__
__DIR__
__LINE__
arguments

Object

getPrototypeOf
setPrototypeOf
getOwnPropertyDescriptor
getOwnPropertyNames
create
defineProperty
defineProperties
seal
freeze
preventExtensions
isSealed
isFrozen
isExtensible
keys
bindProperties
length
name
prototype

Object.prototype

toString
toLocaleString
valueOf
hasOwnProperty
isPrototypeOf
propertyIsEnumerable
constructor

Function

length
name
prototype

Function.prototype

length
name
toString
apply
call
bind
toSource
constructor

Array

isArray
length
name
prototype

Array.prototype

length
toString
toLocaleString
concat
join
pop
push
reverse
shift
slice
sort
splice
unshift
indexOf
lastIndexOf
every
some
forEach
map
filter
reduce
reduceRight
constructor

String

fromCharCode
length
name
prototype

String.prototype

toString
valueOf
charAt
charCodeAt
concat
indexOf
lastIndexOf
localeCompare
match
replace
search
slice
split
substr
substring
toLowerCase
toLocaleLowerCase
toUpperCase
toLocaleUpperCase
trim
trimLeft
trimRight
constructor
length

Boolean

length
name
prototype

Boolean.prototype

toString
valueOf
constructor

Number

MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
length
name
prototype

Number.prototype

toFixed
toExponential
toPrecision
toString
toLocaleString
valueOf
constructor

Date

parse
UTC
now
length
name
prototype

UTC

length
name

Date.prototype

toString
toDateString
toTimeString
toLocaleString
toLocaleDateString
toLocaleTimeString
valueOf
getTime
getFullYear
getUTCFullYear
getYear
getMonth
getUTCMonth
getDate
getUTCDate
getDay
getUTCDay
getHours
getUTCHours
getMinutes
getUTCMinutes
getSeconds
getUTCSeconds
getMilliseconds
getUTCMilliseconds
getTimezoneOffset
setTime
setMilliseconds
setUTCMilliseconds
setSeconds
setUTCSeconds
setMinutes
setUTCMinutes
setHours
setUTCHours
setDate
setUTCDate
setMonth
setUTCMonth
setFullYear
setUTCFullYear
setYear
toUTCString
toGMTString
toISOString
toJSON
constructor

RegExp

input
multiline
lastMatch
lastParen
leftContext
rightContext
$1
$2
$3
$4
$5
$6
$7
$8
$9
length
name
prototype

RegExp.prototype

compile
exec
test
toString
constructor
lastIndex
source
global
ignoreCase
multiline

JSON

parse
stringify

JSAdapter

length
name
prototype

JSAdapter.prototype

constructor

Math

E
LN10
LN2
LOG2E
LOG10E
PI
SQRT1_2
SQRT2
abs
acos
asin
atan
atan2
ceil
cos
exp
floor
log
max
min
pow
random
round
sin
sqrt
tan

Error

captureStackTrace
dumpStack
length
name
prototype

Error.prototype

name
message
printStackTrace
getStackTrace
toString
constructor
stack
lineNumber
columnNumber
fileName

EvalError

length
name
prototype

EvalError.prototype

name
message
constructor

RangeError

length
name
prototype

RangeError.prototype

name
message
constructor

ReferenceError

length
name
prototype

ReferenceError.prototype

name
message
constructor

SyntaxError

length
name
prototype

SyntaxError.prototype

name
message
constructor

TypeError

length
name
prototype

TypeError.prototype

name
message
constructor

URIError

length
name
prototype

URIError.prototype

name
message
constructor

ArrayBuffer

length
name
prototype

ArrayBuffer.prototype

slice
constructor

Int8Array

BYTES_PER_ELEMENT
length
name
prototype

Int8Array.prototype

set
subarray
constructor

Uint8Array

BYTES_PER_ELEMENT
length
name
prototype

Uint8Array.prototype

set
subarray
constructor

Uint8ClampedArray

BYTES_PER_ELEMENT
length
name
prototype

Uint8ClampedArray.prototype

set
subarray
constructor

Int16Array

BYTES_PER_ELEMENT
length
name
prototype

Int16Array.prototype

set
subarray
constructor

Uint16Array

BYTES_PER_ELEMENT
length
name
prototype

Uint16Array.prototype

set
subarray
constructor

Int32Array

BYTES_PER_ELEMENT
length
name
prototype

Int32Array.prototype

set
subarray
constructor

Uint32Array

BYTES_PER_ELEMENT
length
name
prototype

Uint32Array.prototype

set
subarray
constructor

Float32Array

BYTES_PER_ELEMENT
length
name
prototype

Float32Array.prototype

set
subarray
constructor

Float64Array

BYTES_PER_ELEMENT
length
name
prototype

Float64Array.prototype

set
subarray
constructor

Packages

JavaImporter

length
name
prototype

JavaImporter.prototype

__noSuchProperty__
__noSuchMethod__
constructor

Java

isType
type
typeName
to
from
extend
super
@WebReflection
Copy link
Author

generated through this function just adding print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment