Package org.apache.felix.gogo.runtime
Class Closure
- java.lang.Object
-
- org.apache.felix.gogo.runtime.Closure
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCATION
-
Constructor Summary
Constructors Constructor Description Closure(CommandSessionImpl session, Closure parent, java.lang.CharSequence source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
eval(Token t)
java.lang.Object
execute(CommandSession x, java.util.List<java.lang.Object> values)
Execute this function and return the result.java.lang.Object
executeStatement(java.util.List<Token> statement)
java.lang.Object
get(java.lang.String name)
java.lang.Object
put(java.lang.String key, java.lang.Object value)
CommandSessionImpl
session()
java.lang.String
toString()
-
-
-
Field Detail
-
LOCATION
public static final java.lang.String LOCATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Closure
public Closure(CommandSessionImpl session, Closure parent, java.lang.CharSequence source) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
session
public CommandSessionImpl session()
-
execute
public java.lang.Object execute(CommandSession x, java.util.List<java.lang.Object> values) throws java.lang.Exception
Description copied from interface:Function
Execute this function and return the result.
-
eval
public java.lang.Object eval(Token t) throws java.lang.Exception
-
executeStatement
public java.lang.Object executeStatement(java.util.List<Token> statement) throws java.lang.Exception
- Throws:
java.lang.Exception
-
put
public java.lang.Object put(java.lang.String key, java.lang.Object value)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-