org.apache.felix.gogo.runtime
Class Closure

java.lang.Object
  extended by 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 Object
implements org.apache.felix.service.command.Function, org.apache.felix.gogo.runtime.Evaluate


Field Summary
static String LOCATION
           
 
Constructor Summary
Closure(org.apache.felix.gogo.runtime.CommandSessionImpl session, Closure parent, CharSequence source)
           
 
Method Summary
 Object eval(org.apache.felix.gogo.runtime.Token t)
           
 Object execute(org.apache.felix.service.command.CommandSession x, List<Object> values)
           
 Object executeStatement(List<org.apache.felix.gogo.runtime.Token> statement)
           
 Object get(String name)
           
 Object put(String key, Object value)
           
 org.apache.felix.gogo.runtime.CommandSessionImpl session()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCATION

public static final String LOCATION
See Also:
Constant Field Values
Constructor Detail

Closure

public Closure(org.apache.felix.gogo.runtime.CommandSessionImpl session,
               Closure parent,
               CharSequence source)
        throws Exception
Throws:
Exception
Method Detail

session

public org.apache.felix.gogo.runtime.CommandSessionImpl session()

execute

public Object execute(org.apache.felix.service.command.CommandSession x,
                      List<Object> values)
               throws Exception
Specified by:
execute in interface org.apache.felix.service.command.Function
Throws:
Exception

eval

public 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 Object executeStatement(List<org.apache.felix.gogo.runtime.Token> statement)
                        throws Exception
Throws:
Exception

get

public Object get(String name)
Specified by:
get in interface org.apache.felix.gogo.runtime.Evaluate

put

public Object put(String key,
                  Object value)
Specified by:
put in interface org.apache.felix.gogo.runtime.Evaluate

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.