org.kohsuke.stapler.jelly.groovy
Class StaplerClosureScript

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Script
          extended by org.kohsuke.stapler.jelly.groovy.GroovyClosureScript
              extended by org.kohsuke.stapler.jelly.groovy.StaplerClosureScript
All Implemented Interfaces:
groovy.lang.GroovyObject

public abstract class StaplerClosureScript
extends GroovyClosureScript

Author:
Kohsuke Kawaguchi

Field Summary
protected  java.net.URL scriptURL
          Where was this script loaded from?
 
Constructor Summary
StaplerClosureScript()
           
 
Method Summary
 java.lang.String _(java.lang.String text)
          Looks up the resource bundle with the given key, and returns that string, or otherwise return 'text' as-is.
 java.lang.String _(java.lang.String key, java.lang.Object... args)
          Looks up the resource bundle with the given key, formats with arguments, then return that formatted string.
 
Methods inherited from class org.kohsuke.stapler.jelly.groovy.GroovyClosureScript
getDelegate, getProperty, invokeMethod, setDelegate, setProperty
 
Methods inherited from class groovy.lang.Script
evaluate, evaluate, getBinding, print, printf, printf, println, println, run, run, setBinding
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptURL

protected java.net.URL scriptURL
Where was this script loaded from?

Constructor Detail

StaplerClosureScript

public StaplerClosureScript()
Method Detail

_

public java.lang.String _(java.lang.String text)
Looks up the resource bundle with the given key, and returns that string, or otherwise return 'text' as-is.


_

public java.lang.String _(java.lang.String key,
                          java.lang.Object... args)
Looks up the resource bundle with the given key, formats with arguments, then return that formatted string.



Copyright © 2011. All Rights Reserved.