|
Groovy Documentation | |||||||
PREV NEXT | FRAMES NO FRAMES |
UnsupportedOperationException
for an empty range.synchronized void add${name.capitalize}(${listener.name} listener) { if (listener == null) return if (${field.name} == null) ${field.name} = [] ${field.name}.add(listener) }
UnsupportedOperationException
for an empty range.void fire${fireMethod.capitalize()}(${parameterList.join(', ')}) { if (${field.name} !
synchronized ${name.capitalize}[] get${name.capitalize}s() { def __result = [] if (${field.name} !
synchronized void remove${name.capitalize}(${listener.name} listener) { if (listener == null) return if (${field.name} == null) ${field.name} = [] ${field.name}.remove(listener) }
AnnotationNode
conforms to annotation meta
- enhancing an AnnotationNode
AST to reflect real annotation meta
assert i !
null
).asBoolean()
method added on types.CharsetToolkit
utility class.JsonDelegate
s from closures.from
value for the range and less than or equal to the to
value.this.fireVetoableChange("field", field, field = value)
field = value
.
@Delegate
annotationSwingUtilities.invokeLater.
dot( base, "" )
.SwingUtilities.invokeAndWait.
eval(ScriptEngine, Reader, Binding)
except that the
source of the script is provided as a Reader
envp
and under the working directory dir
.
IndexOutOfBoundsException
for an empty range.Object
.true
if attribute values are output with
double quotes; false
if single quotes are used.
Object
.URLConnection
to retrieve a script
from the ResourceConnector
.invokeMethod
mechanism
of GroovyObject
.ScriptEngines
and also exposes metadata describing
Groovy's engine class.RetentionPolicy.CLASS
.RetentionPolicy
.RetentionPolicy.SOURCE
.BufferedReader
(indeed a LineNumberReader
) from the File
specified in the constructor of CharsetToolkit
using the charset discovered or the default
charset if an 8-bit Charset
is encountered.true
if the intersection of two collections is empty.
IntRange
.def str = 'Hello' def cl = { println str }The "str" variable is closure shared.
JavadocAssertionTestBuilder
will dynamically create a test cases from Groovy assertions placed within
the Javadoc comments of a source file. JavadocAssertionTestSuite
will dynamically create test cases from Groovy assertions placed within
Javadoc comments. JsonException
is the exception thrown by the JSON builder and slurper classes,
whenever a problem occurs when creating or parsing JSON data structures.LineColumnReader
is an extension to BufferedReader
that keeps track of the line and column information of where the cursor is.Reader
(FileReader
, FileReader
, InputStreamReader
, etc.)interceptConstruction
flag allows mocking of
constructor calls. Reduction
with Token.NULL
as it's root.gotoPhase( phase + 1 )
.GroovyTestCase.notYetImplemented(this);.
"1.5"
) is the value for targetBytecode to compile for a JDK 1.5 or later JVM"1.4"
) is the value for targetBytecode to compile for a JDK 1.4 JVM
getResultSet()
object.Object
value.QName
class represents the value of a qualified name
as specified in XML
Schema Part2: Datatypes specification.from
value and calling next()
successively
until you reach the to
value. Parser
.Reduction
with the specified root.Invoker
to call the method if it fails.
UnsupportedOperationException
for an empty range.Reduction
. UnsupportedOperationException
for an empty range.GroovyScriptEngine
.null
or a compiled pattern matcher read from "resource.name.regex"
and used in AbstractHttpServlet#getScriptUri(HttpServletRequest)#getScriptUri(HttpServletRequest).UnsupportedOperationException
for an empty range.ReverseListIterator
for the provided list.UnsupportedOperationException
for an empty range.RetentionPolicy.CLASS
.def str = 'Hello' def cl = { println str }The "str" variable is closure shared.
ProxyGenerator
to dump generated Groovy
source code to standard output during construction. Charset
used in case the buffer represents
an 8-bit Charset
.keepWhitespace
- If true then whitespace before elements is kept.Object
value.RetentionPolicy.SOURCE
.myFile.setText('some text', charset)or with some help from
ExpandoMetaClass
, you could do something like:
myFile.metaClass.setText = { String s -> delegate.setText(s, 'UTF-8') } myfile.text = 'some text'
size()
method for File
.size()
method for JTabbedPane
.debug
or
always
.num
elements from the head of this list.
use ( TimeCategory ) { // application on numbers: println 1.minute.from.now println 10.hours.ago // application on dates def someDate = new Date() println someDate - 3.months }
CSTNode
produced by the Lexer
.String
and returns it.getMessage()
.this
stageVisitors
at the appropriate processor visitor.PrintWriter
.Writable
interface,
so that you can have the builder serialize itself the JSON payload to a writer.groovy.util.Node
(as used with XmlParser
) including all children in XML format.
Groovy Documentation