org.crsh.lang.impl.groovy.closure
Class ClosureDelegate

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by org.crsh.lang.impl.groovy.closure.ClosureDelegate
All Implemented Interfaces:
groovy.lang.GroovyObject

 class ClosureDelegate
extends groovy.lang.GroovyObjectSupport

Author:
Julien Viet

Field Summary
private  CommandContext context
          .
private  Object owner
          .
 
Constructor Summary
ClosureDelegate(CommandContext context, Object owner)
           
 
Method Summary
 CommandContext getContext()
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private final CommandContext context
.


owner

private final Object owner
.

Constructor Detail

ClosureDelegate

public ClosureDelegate(CommandContext context,
                       Object owner)
Method Detail

getContext

public CommandContext getContext()

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class groovy.lang.GroovyObjectSupport

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class groovy.lang.GroovyObjectSupport


Copyright © 2015 eXo Platform SAS. All Rights Reserved.