org.apache.felix.gogo.runtime
Class Closure
java.lang.Object
org.apache.felix.gogo.runtime.Closure
- All Implemented Interfaces:
- org.apache.felix.gogo.runtime.Evaluate, org.apache.felix.service.command.Function
public class Closure
- extends java.lang.Object
- implements org.apache.felix.service.command.Function, org.apache.felix.gogo.runtime.Evaluate
Field Summary |
static java.lang.String |
LOCATION
|
Constructor Summary |
Closure(org.apache.felix.gogo.runtime.CommandSessionImpl session,
Closure parent,
java.lang.CharSequence source)
|
Method Summary |
java.lang.Object |
eval(org.apache.felix.gogo.runtime.Token t)
|
java.lang.Object |
execute(org.apache.felix.service.command.CommandSession x,
java.util.List<java.lang.Object> values)
|
java.lang.Object |
executeStatement(java.util.List<org.apache.felix.gogo.runtime.Token> statement)
|
java.lang.Object |
get(java.lang.String name)
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
org.apache.felix.gogo.runtime.CommandSessionImpl |
session()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOCATION
public static final java.lang.String LOCATION
- See Also:
- Constant Field Values
Closure
public Closure(org.apache.felix.gogo.runtime.CommandSessionImpl session,
Closure parent,
java.lang.CharSequence source)
throws Exception
- Throws:
Exception
session
public org.apache.felix.gogo.runtime.CommandSessionImpl session()
execute
public java.lang.Object execute(org.apache.felix.service.command.CommandSession x,
java.util.List<java.lang.Object> values)
throws Exception
- Specified by:
execute
in interface org.apache.felix.service.command.Function
- Throws:
Exception
eval
public java.lang.Object eval(org.apache.felix.gogo.runtime.Token t)
throws Exception
- Specified by:
eval
in interface org.apache.felix.gogo.runtime.Evaluate
- Throws:
Exception
executeStatement
public java.lang.Object executeStatement(java.util.List<org.apache.felix.gogo.runtime.Token> statement)
throws Exception
- Throws:
Exception
get
public java.lang.Object get(java.lang.String name)
- Specified by:
get
in interface org.apache.felix.gogo.runtime.Evaluate
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
- Specified by:
put
in interface org.apache.felix.gogo.runtime.Evaluate
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.