|
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 metafalse.
assert i !as operator.
null).token into its constituent parts
using the following algorithm.token into its constituent parts
using the following algorithm.asBoolean() method added on types.CharsetToolkit utility class.GroovyRuntimeException, because an attribute can have no children.GroovyRuntimeException, because attributes can have no children.Iterator.JsonDelegates from closures.from
value for the range and less than or equal to the to value.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 annotationSwingUtilities.invokeLater.dot( base, "" ).SwingUtilities.invokeAndWait.String using Java String rules to
a Writer.String using JavaScript String rules
to a Writer.eval(ScriptEngine, Reader, Binding) except that the
source of the script is provided as a Readerenvp and under the working directory dir.
this.this.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.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.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.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);.
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 JVMgetResultSet() 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).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.Strings for
Java, Java Script, HTML, XML, and SQL.num elements from the head of this list.
String.
use ( TimeCategory ) {
// application on numbers:
println 1.minute.from.now
println 10.hours.agoCSTNode produced by the Lexer.String and returns it.getMessage().thisstageVisitors 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