|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Script
org.codehaus.gram.GramSupport
public abstract class GramSupport
A useful base class for Gram scripts
Constructor Summary | |
---|---|
GramSupport()
|
|
GramSupport(groovy.lang.Binding binding)
|
Method Summary | |
---|---|
String |
annotationValue(org.codehaus.jam.JAnnotatedElement element,
String annotationName,
String valueName)
Returns the string value of the named annotation |
String |
annotationValue(org.codehaus.jam.JAnnotatedElement element,
String annotationName,
String valueName,
String defaultValue)
Returns the string value of the named annotation or the default value is returned if the element, annotation or value is null |
boolean |
booleanValue(org.codehaus.jam.JAnnotation annotation,
String name)
Returns the boolean value of the annotation or false if the annotation is null or there is no value for the given name |
String |
capitalize(String text)
Captalizes the first character of the given string; particularly useful for turning JAM field names into property names etc. |
String |
decapitalize(String text)
Decaptalizes the first character of the given string; particularly useful for turning JAM property names into field names etc. |
int |
intValue(org.codehaus.jam.JAnnotation annotation,
String name)
Returns the integer value of the annotation or 0 if the annotation is null or there is no value for the given name |
String |
stringValue(org.codehaus.jam.JAnnotation annotation,
String name)
Returns the string value of the annotation or "" if the annotation is null or there is no value for the given name |
String |
stringValue(org.codehaus.jam.JAnnotation annotation,
String name,
String defaultValue)
Returns the string value of the annotation or the defaultValue if the annotation is null or there is no value for the given name |
Methods inherited from class groovy.lang.Script |
---|
evaluate, evaluate, getBinding, getProperty, invokeMethod, print, println, println, run, run, setBinding, setProperty |
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 |
Constructor Detail |
---|
public GramSupport()
public GramSupport(groovy.lang.Binding binding)
Method Detail |
---|
public String stringValue(org.codehaus.jam.JAnnotation annotation, String name)
public String stringValue(org.codehaus.jam.JAnnotation annotation, String name, String defaultValue)
public int intValue(org.codehaus.jam.JAnnotation annotation, String name)
public boolean booleanValue(org.codehaus.jam.JAnnotation annotation, String name)
public String decapitalize(String text)
public String capitalize(String text)
public String annotationValue(org.codehaus.jam.JAnnotatedElement element, String annotationName, String valueName)
public String annotationValue(org.codehaus.jam.JAnnotatedElement element, String annotationName, String valueName, String defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |