Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/groovy
/ functions
Functions
19,657 in github.com/apache/groovy
⨍
Functions
19,657
◇
Types & classes
2,708
↓ 14 callers
Method
getContext
Returns the source unit for this module (single-file compilation context). Provides access to source code, line mappings, and error reporting. @retur
src/main/java/org/codehaus/groovy/ast/ModuleNode.java:538
↓ 14 callers
Method
getGetter
Gets the getter method of this property.
src/main/java/groovy/lang/MetaBeanProperty.java:127
↓ 14 callers
Method
getGetterMethod
Finds a getter {@link MethodNode} matching the given name, optionally searching superclasses. A getter method is defined as a method with no parameter
src/main/java/org/codehaus/groovy/ast/ClassNode.java:1443
↓ 14 callers
Method
getIndex
()
src/main/java/org/codehaus/groovy/runtime/callsite/CallSite.java:26
↓ 14 callers
Method
getInterfacesAndSuperInterfaces
Collects interfaces implemented directly or transitively. @param cNode the class node @return the resulting Set<ClassNode>
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:966
↓ 14 callers
Method
getIvyParts
Parses a dependency coordinate in Maven or Ivy shorthand form into its component parts. <p> Recognized forms: <ul> <li>Maven: {@code group:module:ve
src/main/java/org/codehaus/groovy/tools/GrapeUtil.java:42
↓ 14 callers
Method
getMap
Lazily initialize and load the backing Map. A {@link LinkedHashMap} is used to preserve insertion order. <p> Do not call while holding a read lock. @
src/main/java/org/apache/groovy/plugin/GroovyRunnerRegistry.java:123
↓ 14 callers
Method
getMessage
Returns the message, including the wrapped cause summary when present. @return the formatted exception message
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/Exceptions.java:169
↓ 14 callers
Method
getMessage
Returns the exception message. Equivalent to {@link #toString()} for this exception type. @return the exception message or I/O cause message
src/main/java/org/codehaus/groovy/syntax/ReadException.java:89
↓ 14 callers
Method
getMethod
@return the name of the method that could not be found
src/main/java/groovy/lang/MissingMethodException.java:102
↓ 14 callers
Method
getMethodName
Extracts the constant method name string from a message expression. Returns {@code null} if the expression is not a constant string. @param message t
src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java:578
↓ 14 callers
Method
getMonths
Returns a month-based duration for the supplied number of months. @param self the number of months @return the corresponding duration
src/main/java/groovy/time/TimeCategory.java:162
↓ 14 callers
Method
getObjectInitializerStatements
()
src/main/java/org/codehaus/groovy/ast/ClassNode.java:1221
↓ 14 callers
Method
getOriginType
Returns the original type used when this variable expression was created. For example, {@link #getType()} may return a boxed type while this method re
src/main/java/org/codehaus/groovy/ast/expr/VariableExpression.java:260
↓ 14 callers
Method
getOuterClasses
Returns a list of all outer classes enclosing this {@link ClassNode} in hierarchical order. The innermost outer class appears first in the list. Retur
src/main/java/org/codehaus/groovy/ast/ClassNode.java:2019
↓ 14 callers
Method
getStackTrace
Returns the wrapped stack trace when a cause is present. @return the effective stack trace
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/Exceptions.java:195
↓ 14 callers
Method
getStatementWriter
Returns the StatementWriter for compiling Groovy statements into bytecode. Selection depends on optimization mode: OptimizingStatementWriter for {@lin
src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java:344
↓ 14 callers
Method
getStaticImports
Returns static import declarations (e.g., {@code import static java.lang.Math.PI}). Maps simple names to {@link ImportNode} objects for static member
src/main/java/org/codehaus/groovy/ast/ModuleNode.java:164
↓ 14 callers
Method
getSystemPropertySafe
Retrieves a System property, or returns some default value if: <ul> <li>the property isn't found</li> <li>the property name is null or empty</li> </ul
src/main/java/org/apache/groovy/util/SystemUtil.java:80
↓ 14 callers
Method
getText
Read the content of the File using the specified encoding and return it as a String. @param file the file whose content we want to read @param cha
src/main/java/org/codehaus/groovy/runtime/ResourceGroovyMethods.java:635
↓ 14 callers
Method
getTimeZone
Retrieves the default TimeZone for a date by using the default Locale settings. Recommended that you use {@code TimeZone.getDefault()} instead. @para
src/main/java/groovy/time/TimeCategory.java:86
↓ 14 callers
Method
getValueExpression
()
src/main/java/org/codehaus/groovy/ast/expr/MapEntryExpression.java:57
↓ 14 callers
Method
getYears
Returns a year-based duration for the supplied number of years. @param self the number of years @return the corresponding duration
src/main/java/groovy/time/TimeCategory.java:182
↓ 14 callers
Method
identity
Returns the identity float unary operator. @return a unary operator that always returns its input argument
src/main/java/groovy/util/function/FloatUnaryOperator.java:79
↓ 14 callers
Method
invokeStaticMethod
(String klass, String methodName, Object arguments)
src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java:85
↓ 14 callers
Method
isDone
Returns {@code true} if the computation has completed (normally, exceptionally, or via cancellation). @return {@code true} if complete
src/main/java/groovy/concurrent/Awaitable.java:133
↓ 14 callers
Method
isDoubleCategory
Checks whether the type belongs to Groovy's floating-point category. @param x the type to test @return {@code true} if the type is treated as a doubl
src/main/java/org/codehaus/groovy/vmplugin/v8/TypeHelper.java:143
↓ 14 callers
Method
isNullExpression
Indicates whether this constant expression represents a null value. @return true if this expression represents null; false otherwise
src/main/java/org/codehaus/groovy/ast/expr/ConstantExpression.java:151
↓ 14 callers
Method
isScriptBody
Returns whether this inner class or closure was declared inside a script body. This flag distinguishes between inner classes/closures defined within a
src/main/java/org/codehaus/groovy/ast/ClassNode.java:2216
↓ 14 callers
Method
makeClassSafeWithGenerics
@since 2.4.0
src/main/java/org/codehaus/groovy/ast/tools/GenericsUtils.java:372
↓ 14 callers
Method
newOutputStream
Create a buffered output stream for this file. @param self a file object @return the created OutputStream @throws java.io.IOException if an IOExcepti
subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java:1580
↓ 14 callers
Method
peekLast
{@inheritDoc}
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/LinkedDeque.java:255
↓ 14 callers
Method
range
Define the window bounds by values, similar to MySQL's {@code range between 1.0 preceding and 1.0 following } of window definition @return range defi
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/WindowDefinition.java:192
↓ 14 callers
Method
readLine
Read a single, whole line from the given Reader. This method is designed for use with Readers that support the {@code mark()} operation like BufferRea
src/main/java/org/codehaus/groovy/runtime/IOGroovyMethods.java:648
↓ 14 callers
Method
record
Records the current stack value for the supplied token position. @param token the token whose source position should be recorded
src/main/java/org/codehaus/groovy/classgen/asm/AssertionWriter.java:272
↓ 14 callers
Method
replaceFirst
(String regex, String replacement)
src/main/java/org/codehaus/groovy/runtime/GStringImpl.java:435
↓ 14 callers
Method
setExpression
Sets the pattern expression matched against the switch control expression. @param e the pattern {@link Expression}
src/main/java/org/codehaus/groovy/ast/stmt/CaseStatement.java:82
↓ 14 callers
Method
setInitialValueExpression
Sets the initial value expression for this field. The expression will be evaluated during field initialization. @param initialValueExpression the {@l
src/main/java/org/codehaus/groovy/ast/FieldNode.java:243
↓ 14 callers
Method
setParametersTypes
Sets the cached parameter types and determines if this is a varargs method. @param pt the array of cached parameter types
src/main/java/org/codehaus/groovy/reflection/ParameterTypes.java:91
↓ 14 callers
Method
test
Tests whether the supplied method contains at least one recursive call. @param method the method to inspect @return {@code true} if the method contai
src/main/java/org/codehaus/groovy/transform/tailrec/HasRecursiveCalls.java:38
↓ 14 callers
Method
toArrayString
A helper method to return the string representation of an array of objects with brace boundaries "[" and "]". @param arguments the array to process @
src/main/java/org/codehaus/groovy/runtime/FormatHelper.java:525
↓ 14 callers
Method
toCharArray
@param string string to grab array from. @return char array from string
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/FastStringUtils.java:68
↓ 14 callers
Method
tryCatchS
Creates a try/catch/finally statement. @param tryStatement the try-block statement @return the resulting TryCatchStatement
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1748
↓ 14 callers
Method
unsupportedAttribute
(BuilderASTTransformation transform, AnnotationNode anno, String memberName)
src/main/java/org/codehaus/groovy/transform/BuilderASTTransformation.java:178
↓ 14 callers
Method
visitBinaryExpression
Visits a binary expression (left op right). @param expression the {@link BinaryExpression} to process
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java:272
↓ 13 callers
Method
addClass
Adds a class definition to this module. If this is the first class added, its name is recorded as the main class name. The class's containing module i
src/main/java/org/codehaus/groovy/ast/ModuleNode.java:378
↓ 13 callers
Method
addMeta
(final ASTNode node)
src/main/java/org/codehaus/groovy/classgen/asm/OptimizingStatementWriter.java:449
↓ 13 callers
Method
allMatch
Combines predicates with logical AND. @param expressions match predicates to combine @return conjunction of all predicates @throws IllegalArgumentExc
src/main/java/org/codehaus/groovy/classgen/asm/sc/AbstractFunctionalInterfaceWriter.java:413
↓ 13 callers
Method
assertScript
Asserts the script runs without any exceptions.
src/testFixtures/groovy/org/codehaus/groovy/classgen/TestSupport.java:59
↓ 13 callers
Method
bind
Causes automatic updating of bound values to be turned on. This is idempotent between calls to unbind and rebind; i.e. multiple calls to bind will hav
subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/binding/BindingUpdatable.java:31
↓ 13 callers
Method
clear
Clear the cache @see #clearAll()
src/main/java/org/codehaus/groovy/runtime/memoize/EvictableCache.java:51
↓ 13 callers
Method
contains
{@inheritDoc}
src/main/java/groovy/util/ObservableSet.java:258
↓ 13 callers
Method
createGroovyToken
(final Token token)
src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java:4794
↓ 13 callers
Method
defineVariable
Defines a new Variable using an AST variable. @param initFromStack if true the last element of the stack will be used to initiali
src/main/java/org/codehaus/groovy/classgen/asm/CompileStack.java:818
↓ 13 callers
Method
doCheckNumberOps
(Class klazz, Consumer<Class> byteConsumer, Consumer<Class> shortConsumer, Consumer<Class> intConsumer, Consum
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:110
↓ 13 callers
Method
entrySet
Returns the hydrated entry set, building the backing map if necessary. @return hydrated entry set
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/LazyMap.java:105
↓ 13 callers
Method
evaluateCompoundAssign
GEP-15: dynamic-mode compound-assign codegen. Routes through {@link ScriptBytecodeAdapter#compoundAssign(Object, Object, String, String)} which dispat
src/main/java/org/codehaus/groovy/classgen/asm/BinaryExpressionHelper.java:1084
↓ 13 callers
Method
exit
Restore the enclosing invocation's measure on return from {@code key} (a no-op when checks were disabled). @param key the method's signature key @pa
subprojects/groovy-contracts/src/main/java/org/apache/groovy/contracts/MethodVariantSupport.java:87
↓ 13 callers
Method
find
Returns the found classes @param classpathEntryURI the classpath entry @param packageName the package under which we find classes @return the found c
src/main/java/org/codehaus/groovy/vmplugin/v9/ClassFinder.java:75
↓ 13 callers
Method
getAST
Returns the CompileUnit that roots our AST.
src/main/java/org/codehaus/groovy/control/CompilationUnit.java:436
↓ 13 callers
Method
getBooleanSafe
Retrieves a Boolean System property, or returns false if: <ul> <li>the property isn't found</li> <li>the property name is null or empty</li> </ul> @p
src/main/java/org/apache/groovy/util/SystemUtil.java:113
↓ 13 callers
Method
getClassUnderInspection
Gets the class of the inspected object. @return the inspected class
src/main/java/groovy/inspect/Inspector.java:350
↓ 13 callers
Method
getDebug
Returns true if debugging operation has been requested.
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java:967
↓ 13 callers
Method
getEnclosingClosure
Returns the closure expression which is on the top of the stack, or null if there's no such element.
src/main/java/org/codehaus/groovy/transform/stc/TypeCheckingContext.java:296
↓ 13 callers
Method
getFalseExpression
()
src/main/java/org/codehaus/groovy/ast/expr/TernaryExpression.java:49
↓ 13 callers
Method
getFeature
(String name)
subprojects/groovy-xml/src/test/groovy/groovy/xml/FactorySupportTest.java:246
↓ 13 callers
Method
getMethodTarget
Returns the target {@link MethodNode} if this method call has been resolved to a specific method. When a target is set, the method call will execute t
src/main/java/org/codehaus/groovy/ast/expr/MethodCallExpression.java:335
↓ 13 callers
Method
getNamespaceURI
Gets the Namespace URI for this QName @return Namespace URI
src/main/java/groovy/namespace/QName.java:96
↓ 13 callers
Method
getOutputStream
()
subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java:134
↓ 13 callers
Method
getParametersSafe
@return the parameters for the ClosureExpression
src/main/java/org/codehaus/groovy/ast/tools/ClosureUtils.java:80
↓ 13 callers
Method
getPath
Gets path from a <code>List</code> of <code>String</code>s. @param pathStack <code>List</code> of <code>String</code>s to be concatenated as a path.
src/main/java/org/codehaus/groovy/runtime/ResourceGroovyMethods.java:2763
↓ 13 callers
Method
getResultSet
Gets the current result set. @return the result set @throws SQLException if the result set can not be returned
subprojects/groovy-sql/src/main/java/groovy/sql/GroovyResultSetExtension.java:56
↓ 13 callers
Method
getSourceUnit
{@inheritDoc}
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java:464
↓ 13 callers
Method
getStarImports
Returns wildcard (star) import declarations (e.g., {@code import java.util. }). These imports make all public classes in a package available without q
src/main/java/org/codehaus/groovy/ast/ModuleNode.java:154
↓ 13 callers
Method
getTarget
(Variable v)
src/main/java/org/codehaus/groovy/classgen/FinalVariableAnalyzer.java:131
↓ 13 callers
Method
getTrueExpression
()
src/main/java/org/codehaus/groovy/ast/expr/TernaryExpression.java:45
↓ 13 callers
Method
indexOf
(Object o)
src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java:1750
↓ 13 callers
Method
invoke
(CachedMethod method, Object object, Object[] arguments)
src/main/java/org/codehaus/groovy/runtime/Reflector.java:30
↓ 13 callers
Method
isAnnotationDefinition
Returns whether this {@link ClassNode} represents an annotation type (annotation definition). Annotation types are always interfaces with both the {@c
src/main/java/org/codehaus/groovy/ast/ClassNode.java:1883
↓ 13 callers
Method
isFinal
Indicates whether this member is declared {@code final}. @return {@code true} if the final modifier is present
src/main/java/groovy/lang/MetaMember.java:49
↓ 13 callers
Method
isMultipleAssignmentDeclaration
This method tells you if this declaration is a multiple assignment declaration, which has the form "def (x, y) = ..." in Groovy. If this method return
src/main/java/org/codehaus/groovy/ast/expr/DeclarationExpression.java:212
↓ 13 callers
Method
isRedirectNode
Returns whether this {@link ClassNode} is a redirect (proxy) node for another ClassNode. A redirect node acts as a placeholder that forwards most meth
src/main/java/org/codehaus/groovy/ast/ClassNode.java:298
↓ 13 callers
Method
isSAMType
(final ClassNode type)
src/main/java/org/codehaus/groovy/ast/ClassHelper.java:622
↓ 13 callers
Method
isSynthetic
Indicates whether this member was synthesized rather than declared directly in source. @return {@code true} if this member is synthetic
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/groovydoc/GroovyMemberDoc.java:30
↓ 13 callers
Method
isThisExpression
Indicates whether the expression represents {@code this}.
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java:6182
↓ 13 callers
Method
isUsingAnonymousInnerClass
Indicates whether this constructor call uses an anonymous inner class. @return true if an anonymous inner class is being created, false for regular c
src/main/java/org/codehaus/groovy/ast/expr/ConstructorCallExpression.java:144
↓ 13 callers
Method
isWrapperInteger
(ClassNode type)
src/main/java/org/codehaus/groovy/ast/ClassHelper.java:566
↓ 13 callers
Method
join
Concatenates the <code>toString()</code> representation of each item from the Iterator. The iterator will be exhausted of elements. @param self an It
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java:11049
↓ 13 callers
Method
makeMapEntry
(String method, MethodType[] keys, MethodType[] values)
src/main/java/org/codehaus/groovy/vmplugin/v8/IndyMath.java:64
↓ 13 callers
Method
multiply
Multiplies two {@code int} values. @param a the left operand @param b the right operand @return the product
src/main/java/org/codehaus/groovy/vmplugin/v8/IndyMath.java:187
↓ 13 callers
Method
next
()
subprojects/groovy-xml/src/main/java/groovy/xml/slurpersupport/Node.java:206
↓ 13 callers
Method
parameters
Returns the parameters declared by this executable. @return the declared parameters
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/groovydoc/GroovyExecutableMemberDoc.java:54
↓ 13 callers
Method
peek
If a value is present in the {@code OptionalInt}, executes the specified {@code action} with the value as input and then returns {@code self}. <pre c
src/main/java/org/codehaus/groovy/vmplugin/v8/PluginDefaultGroovyMethods.java:307
↓ 13 callers
Method
plus
Returns a {@link java.time.Duration} that is {@code seconds} seconds longer than this duration. @param self a Duration @param seconds the number o
subprojects/groovy-datetime/src/main/java/org/apache/groovy/datetime/extensions/DateTimeExtensions.java:355
↓ 13 callers
Method
printIndent
Writes the current indentation through the configured indent printer.
subprojects/groovy-xml/src/main/java/org/apache/groovy/xml/tools/DomToGroovy.java:599
↓ 13 callers
Method
put
{@inheritDoc}
src/main/java/org/codehaus/groovy/runtime/memoize/CommonCache.java:133
↓ 13 callers
Method
qualifiedTypeName
The qualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "<code>java.lang.String</c
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/groovydoc/GroovyType.java:37
↓ 13 callers
Method
read
(final Reader reader, Position position, StringBuilder lookAhead)
subprojects/groovy-templates/src/main/groovy/groovy/text/StreamingTemplateEngine.java:946
↓ 13 callers
Method
replaceExpressionPropertyWhenNecessary
(final ASTNode node, final String propName, final Class propClass)
src/main/java/org/codehaus/groovy/transform/tailrec/VariableExpressionReplacer.java:166
↓ 13 callers
Method
resolveClass
(GroovyRootDoc rootDoc, String name)
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/tools/groovydoc/SimpleGroovyClassDoc.java:739
← previous
next →
901–1,000 of 19,657, ranked by callers