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
↓ 16 callers
Method
isEmpty
()
src/main/java/org/codehaus/groovy/runtime/GStringImpl.java:152
↓ 16 callers
Method
isIntCategory
Checks whether the type belongs to Groovy's integral-int category. @param x the type to test @return {@code true} if the type is treated as an int-li
src/main/java/org/codehaus/groovy/vmplugin/v8/TypeHelper.java:106
↓ 16 callers
Method
isNumberType
(final ClassNode cn)
src/main/java/org/codehaus/groovy/ast/ClassHelper.java:491
↓ 16 callers
Method
isReverse
Indicates whether this is a reverse range which iterates backwards starting from the to value and ending on the from value @return <code>true</code>
src/main/java/groovy/lang/Range.java:72
↓ 16 callers
Method
leftShiftSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:5757
↓ 16 callers
Method
listFiles
()
subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java:1038
↓ 16 callers
Method
log
(final String level, Object msg, Throwable cause)
src/main/java/org/codehaus/groovy/tools/shell/util/Logger.java:47
↓ 16 callers
Method
makeArray
Returns a {@code ClassNode} representing an array of the type represented by this.
src/main/java/org/codehaus/groovy/ast/ClassNode.java:1968
↓ 16 callers
Method
modSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:5053
↓ 16 callers
Method
newReader
Create a buffered reader for this file. @param self a Path @return a BufferedReader @throws java.io.IOException if an IOException occurs. @since 2.3.
subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java:1521
↓ 16 callers
Method
newStatic
Creates a multi-adapter for static methods with optional safe and spread-safe variants. @param theClass the class containing the methods @param baseN
src/main/java/org/codehaus/groovy/classgen/asm/MethodCallerMultiAdapter.java:43
↓ 16 callers
Method
orSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:3645
↓ 16 callers
Method
primitiveArrayToList
Allows conversion of arrays into a mutable List @param array an array @return the array as a List
src/main/java/org/codehaus/groovy/runtime/typehandling/DefaultTypeTransformation.java:839
↓ 16 callers
Method
printf
Prints a formatted string using the specified format string and argument. @param format the format to follow @param value the value to be formatted
src/main/java/groovy/lang/Script.java:210
↓ 16 callers
Method
remainderSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:5405
↓ 16 callers
Method
rightShiftSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:6109
↓ 16 callers
Method
rightShiftUnsignedSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:6461
↓ 16 callers
Method
safeCall
Invokes the supplied closure and reports any failure to the source unit.
src/main/java/org/codehaus/groovy/transform/stc/AbstractTypeCheckingExtension.java:250
↓ 16 callers
Method
sameX
Creates an identity test expression using Groovy's {@code is} method. @param self the left-hand expression @param other the other object/value expres
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1656
↓ 16 callers
Method
setGenericsPlaceHolder
(boolean placeholder)
src/main/java/org/codehaus/groovy/ast/ClassNode.java:2155
↓ 16 callers
Method
setSpreadSafe
(final boolean spreadSafe)
src/main/java/org/codehaus/groovy/ast/expr/PropertyExpression.java:116
↓ 16 callers
Method
setVariable
Binds a servlet variable while protecting the reserved lazy helper names. @param name the variable name to bind @param value the value to expose thro
subprojects/groovy-servlet/src/main/java/groovy/servlet/ServletBinding.java:303
↓ 16 callers
Method
toString
{@inheritDoc}
src/main/java/groovy/lang/GString.java:72
↓ 16 callers
Method
transformInlineConstants
Transforms constants that would appear in annotations so they aren't lost. Subsequent processing determines whether they are valid, this retains the c
src/main/java/org/apache/groovy/ast/tools/ExpressionUtils.java:207
↓ 16 callers
Method
visitListOfExpressions
Convenience method to visit a list of expressions. Iterates through the list and calls the visit method on each non-null expression. @param list the
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java:505
↓ 16 callers
Method
visitProperty
Visit a PropertyNode.
src/main/java/org/codehaus/groovy/ast/GroovyClassVisitor.java:53
↓ 16 callers
Method
visitStatement
Hook method called when visiting any {@link Statement}. Subclasses may override to perform common processing on all statements. @param statement the
src/main/java/org/codehaus/groovy/ast/ClassCodeVisitorSupport.java:460
↓ 16 callers
Method
writeStatementLabel
Emits bytecode labels for any statement labels attached to {@code statement}. Called before emitting the body of every statement so that named labels
src/main/java/org/codehaus/groovy/classgen/asm/StatementWriter.java:111
↓ 16 callers
Method
xorSlow
(byte op1, byte op2)
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMathModificationInfo.java:4349
↓ 15 callers
Method
abs
Computes the absolute value of a number using its specific type's math operations. @param number the number (must not be null) @return the absolute v
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMath.java:53
↓ 15 callers
Method
addField
Unsupported for union types.
src/main/java/org/codehaus/groovy/transform/stc/UnionTypeClassNode.java:120
↓ 15 callers
Method
await
Awaits the result of an {@link Awaitable}. Blocks the calling thread until the computation completes. The original exception is rethrown transparently
src/main/java/org/apache/groovy/runtime/async/AsyncSupport.java:170
↓ 15 callers
Function
b
(c,e)
src/spec/doc/assets/js/jquery-2.1.1.min.js:2
↓ 15 callers
Method
canUndo
()
subprojects/groovy-console/src/main/groovy/groovy/console/ui/text/TextUndoManager.java:258
↓ 15 callers
Method
chainShouldOptimize
set "should" to true, if not already
src/main/java/org/codehaus/groovy/classgen/asm/OptimizingStatementWriter.java:586
↓ 15 callers
Method
compile
Synonym for {@code compile(Phases.ALL)}.
src/main/java/org/codehaus/groovy/control/CompilationUnit.java:703
↓ 15 callers
Method
configure
(final Expression origX, final ConstantExpression newX)
src/main/java/org/apache/groovy/ast/tools/ExpressionUtils.java:389
↓ 15 callers
Method
createSimilarMap
(Map<K, V> orig)
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethodsSupport.java:323
↓ 15 callers
Method
decapitalize
Returns a string which is the same as the original except the first letter will be lowercase except for some special cases as per JavaBean handling. I
src/main/java/org/apache/groovy/util/BeanUtils.java:40
↓ 15 callers
Method
divide
Divides two numbers using type promotion rules. <p> For floating-point operands, performs binary floating-point division. For integral types, delegate
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMath.java:101
↓ 15 callers
Method
extractGenericsConnections
Uses supplied type to make a connection from usage to declaration. <p> The method operates in two modes: <ul> <li>For type !instanceof target a struct
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java:1800
↓ 15 callers
Method
find
Finds the first occurrence of a regular expression String within a String. If the regex doesn't match, null will be returned. <p> For example, if the
src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java:915
↓ 15 callers
Method
findMethodSection
(String doc, String methodName, String signatureFragment)
subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/GroovyDocToolTest.java:1154
↓ 15 callers
Method
format
Formats this date with the provided {@link java.time.format.DateTimeFormatter} pattern. @param self a LocalDate @param pattern the formatting patt
subprojects/groovy-datetime/src/main/java/org/apache/groovy/datetime/extensions/DateTimeExtensions.java:556
↓ 15 callers
Method
get
{@inheritDoc}
src/main/java/org/codehaus/groovy/runtime/memoize/StampedCommonCache.java:99
↓ 15 callers
Method
get
{@inheritDoc}
src/main/java/org/codehaus/groovy/runtime/memoize/ConcurrentCommonCache.java:97
↓ 15 callers
Method
getArray
()
src/main/java/org/codehaus/groovy/runtime/callsite/CallSite.java:25
↓ 15 callers
Method
getAssertionWriter
Returns the AssertionWriter for compiling Groovy assert statements into bytecode that evaluates conditions and raises AssertionError.
src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java:296
↓ 15 callers
Method
getClassName
Returns the fully qualified class name of the imported type. @return the class name, or null if this import refers to a package
src/main/java/org/codehaus/groovy/ast/ImportNode.java:158
↓ 15 callers
Method
getData
Returns the auxiliary data associated with this receiver.
src/main/java/org/codehaus/groovy/transform/stc/Receiver.java:70
↓ 15 callers
Method
getFrom
{@inheritDoc}
src/main/java/groovy/lang/IntRange.java:338
↓ 15 callers
Method
getInternalClassName
Returns the internal (JVM) name of the class being compiled. The internal name format uses '/' as package separator, e.g., "org/groovy/MyClass". This
src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java:498
↓ 15 callers
Method
getModifiers
Returns the ASM modifier flags for this field. Flags include visibility (public/protected/private), static, final, transient, volatile, etc. @return
src/main/java/org/codehaus/groovy/ast/FieldNode.java:171
↓ 15 callers
Method
getOwnerType
()
src/main/java/org/codehaus/groovy/ast/expr/StaticMethodCallExpression.java:84
↓ 15 callers
Method
groovyOption
Returns the value of a specific Groovy option. @param option the option key @param defval the default value if option not found @param <T> the type o
subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java:997
↓ 15 callers
Method
initialize
Complete the initialisation process. After this method is called no methods should be added to the metaclass. Invocation of methods or access to field
src/main/java/groovy/lang/MetaClass.java:147
↓ 15 callers
Method
intUnbox
Unboxes an object to a primitive {@code int} value. <p> Converts the object to a {@code Number} and then extracts its int value. @param value the obj
src/main/java/org/codehaus/groovy/runtime/typehandling/DefaultTypeTransformation.java:150
↓ 15 callers
Method
invokeConstructorOf
(String klass, Object arguments)
src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java:94
↓ 15 callers
Method
isContinuationChar
If the byte has the form 10xxxxx, then it's a continuation byte of a multiple byte character; @param b a byte. @return true if it's a continuation ch
src/main/java/groovy/util/CharsetToolkit.java:282
↓ 15 callers
Method
isDefault
Checks whether this method is a default method. Default methods are public methods in interfaces with no abstract modifier. @return true if this meth
src/main/java/org/codehaus/groovy/ast/MethodNode.java:286
↓ 15 callers
Method
isDynamicTyped
Returns true if this variable has dynamic type information that could not be resolved at compile time. @return true if dynamically typed
src/main/java/org/codehaus/groovy/ast/Variable.java:115
↓ 15 callers
Method
isPublic
Indicates whether this element is declared {@code public}. @return {@code true} if this element is public
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/groovydoc/GroovyProgramElementDoc.java:80
↓ 15 callers
Method
isPublic
Indicates whether this member is declared {@code public}. @return {@code true} if the public modifier is present
src/main/java/groovy/lang/MetaMember.java:86
↓ 15 callers
Method
isSealed
@return {@code true} for native and emulated (annotation based) sealed classes @since 4.0.0
src/main/java/org/codehaus/groovy/ast/ClassNode.java:1917
↓ 15 callers
Method
key
Returns the resolved key for this entry. @return the entry key, or {@code null} if it was reclaimed
src/main/java/org/apache/groovy/util/concurrent/ConcurrentReferenceHashMap.java:531
↓ 15 callers
Method
load
Emits a load instruction for the given type from the specified local variable slot and pushes the type onto the tracked stack. @param type the type o
src/main/java/org/codehaus/groovy/classgen/asm/OperandStack.java:718
↓ 15 callers
Method
loadClass
(String name, boolean resolve)
src/test/groovy/bugs/groovy9742/DelegatingGroovyClassLoader.java:43
↓ 15 callers
Method
lookup
Returns the token type for the specified symbol or keyword text. Returns {@link #UNKNOWN} if the text is not found. Optionally filters the result by t
src/main/java/org/codehaus/groovy/syntax/Types.java:1299
↓ 15 callers
Method
methodDescriptor
Return the method node's descriptor which includes its return type, name and parameter types without generics. @param mNode the method node @return t
src/main/java/org/apache/groovy/ast/tools/MethodNodeUtils.java:76
↓ 15 callers
Method
notNullX
Creates a non-null test expression. @param expr the expression @return the resulting BooleanExpression
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1504
↓ 15 callers
Method
openConnection
(URL scriptURL)
src/main/java/groovy/util/GroovyScriptEngine.java:430
↓ 15 callers
Method
peek
{@inheritDoc}
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/LinkedDeque.java:243
↓ 15 callers
Method
putIfAbsent
{@inheritDoc} @return the previous value associated with the specified key, or <tt>null</tt> if there was no mapping for the key @throws NullPointerE
src/main/java/org/apache/groovy/util/concurrent/ConcurrentReferenceHashMap.java:1659
↓ 15 callers
Method
removeLast
Removes the last item from the List. <pre class="language-groovy groovyTestCase"> def list = ['a', false, 2] assert list.removeLast() == 2 assert lis
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java:14034
↓ 15 callers
Method
reverse
Creates a new List with the identical contents to this list but in reverse order. <pre class="language-groovy groovyTestCase"> def list = ["a", 4, fal
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java:14303
↓ 15 callers
Method
setDelegate
Sets the delegation target.
src/main/java/groovy/util/DelegatingScript.java:109
↓ 15 callers
Method
setProperty
(Object object, String property, Object newValue)
src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java:177
↓ 15 callers
Method
setRawCommentText
Replaces the raw documentation comment for this element. @param arg0 the raw comment text to store
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/groovydoc/GroovyDoc.java:157
↓ 15 callers
Method
setWildcard
Marks this generic type as a wildcard. Clears the placeholder flag if set, since wildcards and placeholders are mutually exclusive. @param wildcard t
src/main/java/org/codehaus/groovy/ast/GenericsType.java:249
↓ 15 callers
Method
throwS
Creates a throw statement. @param expr the expression @return the resulting ThrowStatement
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1739
↓ 15 callers
Method
toCompletableFuture
Converts this {@code Awaitable} to a JDK {@link CompletableFuture} for interoperability with APIs that require it. @return a {@code CompletableFuture
src/main/java/groovy/concurrent/Awaitable.java:302
↓ 15 callers
Method
toURL
Transforms a CharSequence representing a URL into a URL object. @param self the CharSequence representing a URL @return a URL @throws java.net.Malfor
src/main/java/org/codehaus/groovy/runtime/ResourceGroovyMethods.java:2721
↓ 15 callers
Method
transform
Resolves and rewrites expressions while traversing the current class. @param exp the expression to transform @return the transformed expression
src/main/java/org/codehaus/groovy/control/ResolveVisitor.java:956
↓ 15 callers
Method
visitAnnotationsOpt
(final AnnotationsOptContext ctx)
src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java:4379
↓ 15 callers
Method
visitDeclarationExpression
Visits a declaration expression (variable declaration with initialization). @param expression the {@link DeclarationExpression} to process
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java:405
↓ 15 callers
Method
visitIdentifier
(final IdentifierContext ctx)
src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java:4475
↓ 15 callers
Method
visitIntInsn
{@inheritDoc}
src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java:355
↓ 15 callers
Method
visitTypeReference
(final ClassNode node)
src/main/java/org/codehaus/groovy/classgen/VariableScopeVisitor.java:363
↓ 15 callers
Method
visitWhileLoop
Visits a while loop statement. @param statement the {@link WhileStatement} to process
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java:116
↓ 15 callers
Method
writeTo
Writes this object to the given writer. <p> This is used to defer content creation until the point when it is streamed to the output destination. Oft
src/main/java/groovy/lang/Writable.java:52
↓ 14 callers
Method
addAll
{@inheritDoc}
src/main/java/groovy/util/ObservableSet.java:320
↓ 14 callers
Method
byteValue
Converts this token to a byte value. @return the byte representation
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/Value.java:35
↓ 14 callers
Method
castToChar
Casts an object to a char value (Character wrapper). <p> Accepts Character objects, Numbers (converted via intValue), or Strings of length 1. @param
src/main/java/org/codehaus/groovy/runtime/typehandling/ShortTypeHandling.java:114
↓ 14 callers
Method
checkNotNull
Ensures that the object is not null.
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/ConcurrentLinkedHashMap.java:278
↓ 14 callers
Method
checkPropertyList
Validates that all property names in the given list exist in the target class. This is a convenience overload that calls {@link #checkPropertyList(Cla
src/main/java/org/codehaus/groovy/transform/AbstractASTTransformation.java:628
↓ 14 callers
Method
extractPlaceholders
Returns the type parameter/argument relationships of the specified type. @since 2.0.0
src/main/java/org/codehaus/groovy/ast/tools/GenericsUtils.java:180
↓ 14 callers
Method
formatTypeName
Formats a type name into a human-readable version. For arrays, appends "[]" to the formatted type name of the component. For unit class nodes, uses th
src/main/java/org/apache/groovy/ast/tools/ClassNodeUtils.java:72
↓ 14 callers
Method
get
{@inheritDoc}
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/SimpleCache.java:63
↓ 14 callers
Method
getAllProperties
Returns all loaded release metadata properties. @return the loaded release information
src/main/java/org/codehaus/groovy/util/ReleaseInfo.java:80
↓ 14 callers
Method
getClassWithNullAndWrapper
(Object arg)
src/main/java/org/codehaus/groovy/runtime/MetaClassHelper.java:911
← previous
next →
801–900 of 19,657, ranked by callers