Constructor and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
LeoObject[] |
compile() |
LeoObject |
get(int index)
Retrieves the
LeoObject and a particular index. |
int |
get(LeoObject obj)
Retrieves the index in which the supplied
LeoObject is stored. |
int |
getNumberOfConstants() |
int |
store(int n)
Stores the number literal (converts it to a
LeoInteger ). |
int |
store(LeoObject obj)
Stores a
LeoObject literal |
int |
store(String value)
Stores the string literal (converts it to a
LeoString ). |
public int getNumberOfConstants()
public int store(String value)
LeoString
).value
- public int store(int n)
LeoInteger
).value
- public int store(LeoObject obj)
LeoObject
literalobj
- public int get(LeoObject obj)
LeoObject
is stored.obj
- public LeoObject get(int index)
LeoObject
and a particular index.index
- LeoObject
stored and the supplied indexpublic LeoObject[] compile()
Copyright © 2010–2015. All rights reserved.