public class LeoClass extends LeoScopedObject
Modifier and Type | Class and Description |
---|---|
static class |
LeoClass.Metaclass
Metaclass is used for reflection
|
LeoObject.LeoType
NOOUTERS, outers
Constructor and Description |
---|
LeoClass(Leola runtime,
Scope scope,
ClassDefinition classDefinition,
LeoObject superClass,
LeoObject[] params) |
Modifier and Type | Method and Description |
---|---|
LeoObject |
$add(LeoObject other) |
LeoObject |
$band(LeoObject other) |
LeoObject |
$bnot() |
LeoObject |
$bor(LeoObject other) |
LeoObject |
$bsl(LeoObject other) |
LeoObject |
$bsr(LeoObject other) |
LeoObject |
$div(LeoObject other) |
boolean |
$eq(LeoObject other)
Determines if it equals another object.
|
boolean |
$gt(LeoObject other)
If it's greater than to another object
|
boolean |
$gte(LeoObject other)
If it's greater than or equal to another object.
|
LeoObject |
$index(LeoObject key) |
boolean |
$lt(LeoObject other)
If it's less than to another object
|
boolean |
$lte(LeoObject other)
If it's less than or equal to another object.
|
LeoObject |
$mod(LeoObject other) |
LeoObject |
$mul(LeoObject other) |
LeoObject |
$neg() |
boolean |
$neq(LeoObject other)
If it's not equal another object.
|
void |
$sindex(LeoObject key,
LeoObject value) |
LeoObject |
$sub(LeoObject other) |
LeoObject |
$xor(LeoObject other) |
LeoObject |
clone() |
boolean |
equals(Object obj) |
LeoObject |
getClassName() |
Bytecode |
getConstructor() |
LeoObject[] |
getParamNames() |
LeoObject |
getSuperClass() |
Object |
getValue() |
boolean |
isClass() |
boolean |
isOfType(String rawType)
Determines if this type is of the supplied type.
|
static LeoClass |
read(DataInput in)
|
String |
toString() |
void |
write(DataOutput out)
Writes this object out
|
addMethod, addMethod, addMethod, addProperty, getNamespaceDefinitions, getObject, getProperties, getProperty, getPropertyNames, getScope, hasObject, hasProperty, isScopedObject, lazyGetProperty, putObject, putObject, removeProperty, setObject, xgetObject, xgetProperty
getOuters, isOuter
$add, $add, $add, $band, $band, $band, $bor, $bor, $bor, $bsl, $bsl, $bsl, $bsr, $bsr, $bsr, $div, $div, $div, $eq, $eq, $eq, $eq, $gt, $gt, $gt, $gte, $gte, $gte, $index, $index, $index, $lt, $lt, $lt, $lte, $lte, $lte, $mod, $mod, $mod, $mul, $mul, $mul, $neq, $neq, $neq, $req, $sub, $sub, $sub, $xor, $xor, $xor, as, as, asByte, asChar, asDouble, asFloat, asInt, asLong, asShort, call, call, call, call, call, call, call, compareTo, getLocals, getNativeMember, getNativeMethod, getNativeMethod, getNumberOfArgs, getObject, getType, getValue, hasNativeMethod, hasNativeMethod, hasObject, hasVarargs, isArray, isAssignable, isBoolean, isError, isFunction, isGenerator, isMap, isNamespace, isNativeClass, isNativeFunction, isNull, isNumber, isOfType, isOfType, isOfType, isString, isTrue, isTrue, read, removeInterfaceMethods, rethrow, setObject, throwAttributeAccessError, throwAttributeError, throwAttributeError, throwClassNotFoundError, throwDivideByZeroError, throwIfError, throwMethodError, throwNativeMethodError, throwNotImplementedError, toJavaObject, toLeoString, valueOf, xcall, xcall, xcall, xcall, xcall, xcall, xcall, xgetObject
public LeoClass(Leola runtime, Scope scope, ClassDefinition classDefinition, LeoObject superClass, LeoObject[] params)
runtime
- scope
- superClass
- className
- constructor
- paramNames
- params
- public LeoObject[] getParamNames()
public LeoObject getClassName()
public Bytecode getConstructor()
public LeoObject getSuperClass()
public boolean isOfType(String rawType)
LeoObject
public boolean $eq(LeoObject other)
LeoObject
$eq
in class LeoScopedObject
public boolean $neq(LeoObject other)
LeoObject
public boolean $lte(LeoObject other)
LeoObject
public boolean $lt(LeoObject other)
LeoObject
public boolean $gte(LeoObject other)
LeoObject
public boolean $gt(LeoObject other)
LeoObject
public Object getValue()
public LeoObject clone()
public void write(DataOutput out) throws IOException
LeoObject
write
in class LeoObject
IOException
public static LeoClass read(DataInput in) throws IOException
in
- LeoObject
IOException
Copyright © 2010–2015. All rights reserved.