|
Groovy 2.2.0 | |||||||
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 metafalse
.
assert i !
as
operator.
null
).Cloneable
classes.
@
AutoClone annotation.Externalizable
classes.
@Bindable
annotation when @Vetoable
is not present.token
into its constituent parts
using the following algorithm.token
into its constituent parts
using the following algorithm.asBoolean()
method added on types.false
but set to true
if the dependency artifacts may change without a corresponding
revision change. CharsetToolkit
utility class.GroovyRuntimeException
, because an attribute can have no children.GroovyRuntimeException
, because attributes can have no children.Iterator
.JsonDelegate
s from closures.from
value for the range and less than or equal to the to
value.true
, this adds a method copyWith
which takes a Map of
new property values and returns a new instance of the Immutable class with
these values set.
this.fireVetoableChange("field", field, field = value)
field = value
.SimpleDateFormat
,
so that the JsonOutput
class used by JsonBuilder
can be thread-safe when outputting dates and calendars.@Delegate
annotationinterfaces=true
.SwingUtilities.invokeLater.
dot( base, "" )
.SwingUtilities.invokeAndWait.
equals()
and hashCode()
methods.String
using Java String rules to
a Writer
.String
using JavaScript String rules
to a Writer
." ' & < >
with their XML entities, e.g.
eval(ScriptEngine, Reader, Binding)
except that the
source of the script is provided as a Reader
envp
and under the working directory dir
.
this
.this
.false
but set to true
to indicate to the underlying Ivy conflict manager that this
dependency should be forced to the given revision. IndexOutOfBoundsException
for an empty range.Object
.true
if attribute values are output with
double quotes; false
if single quotes are used.
Object
.name
with the parent parent
,
the namespacePrefix namespacePrefix
and the namespaceTagHints specified in
the namespaceTagHints
Map.invokeMethod
mechanism
of GroovyObject
.ScriptEngines
and also exposes metadata describing
Groovy's engine class.@Bindable
.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.@Vetoable
.@
IndexedProperty annotation.@
InheritConstructors annotation.@Grab
annotation is used, a Grape.grab()
call is added
to the static initializers of the class the annotatable node appears in.
@GrabResolver
annotation is used, a Grape.addResolver()
call is added
to the static initializers of the class the annotatable node appears in.
true
if the intersection of two collections is empty.
IntRange
.def str = 'Hello' def cl = { println str }The "str" variable is closure shared.
size()
is 0.Iterator
.Iterator
of the children of the node.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. "1.4"
) is the value for targetBytecode to compile for a JDK 1.4"1.5"
) is the value for targetBytecode to compile for a JDK 1.5"1.6"
) is the value for targetBytecode to compile for a JDK 1.6"1.7"
) is the value for targetBytecode to compile for a JDK 1.7"1.8"
) is the value for targetBytecode to compile for a JDK 1.8JsonException
is the exception thrown by the JSON builder and slurper classes,
whenever a problem occurs when creating or parsing JSON data structures.@Immutable
with a list of classes which
are deemed immutable. @Immutable
with a list of property names which
are deemed immutable. 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.)@ListenerList
annotation.size()
.ListModel
implementation that's backed by a live List
.interceptConstruction
flag allows mocking of
constructor calls. Reduction
with Token.NULL
as it's root.gotoPhase( phase + 1 )
.GroovyTestCase.notYetImplemented(this);.
@NotYetImplemented
annotation.@
PackageScope is placed at the class level.GroovyRuntimeException
, because this method is not implemented yet.GroovyRuntimeException
, because it is not implemented yet.GroovyRuntimeException
, because this method is not implemented yet.GroovyRuntimeException
, because it is not implemented yet."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.PrintWriter
.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. @
WithReadLock and @
WithWriteLock annotation.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).ResultSetMetaData
.
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'
1
.0
.size()
method for File
.size()
method for JTabbedPane
.debug
or
always
.String
s for
Java, Java Script, HTML, XML, and SQL.@
Synchronized annotation.String
.use ( TimeCategory ) { // application on numbers: println 1.minute.from.now println 10.hours.ago
CSTNode
produced by the Lexer
.toString()
methods in classes.
String
and returns it.getMessage()
.this
true
but set to false
if you don't want transitive dependencies also to be downloaded.
Object
representing the value of the node.@Vetoable
annotation, and @Bindable
if also present.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.
Copyright © 2003-2013 The Codehaus. All rights reserved.