|
Groovy 2.1.0-rc-3 | |||||||
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
).Map
of the attributes of the node or an empty Map
if the node does not have any attributes.token
into its constituent parts
using the following algorithm.asBoolean()
method added on types.CharsetToolkit
utility class.from
value for the range and less than or equal to the to
value.this.fireVetoableChange("field", field, field = value)
field = value
.
@Delegate
annotationdot( base, "" )
.envp
and under the working directory dir
.
IndexOutOfBoundsException
for an empty range.invokeMethod
mechanism
of GroovyObject
.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.
Iterator
of the children of the node.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.)Reduction
with Token.NULL
as it's root.gotoPhase( phase + 1 )
.name
with value value
and
with attributes specified in the attributes
Map. "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
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
.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
.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
.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
.Copyright © 2003-2013 The Codehaus. All rights reserved.