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
↓ 22 callers
Method
isPresent
Tests if groovydoc is present @return {@code true} if groovydoc is present
src/main/java/groovy/lang/groovydoc/Groovydoc.java:93
↓ 22 callers
Method
makeArgumentList
Converts an expression to an argument list. @return {@code arguments} if already an argument list or an argument list of the expression or ex
src/main/java/org/codehaus/groovy/classgen/asm/InvocationWriter.java:558
↓ 22 callers
Method
parseClass
Parses the given file into a Java class capable of being run @param file the file name to parse @return the main class defined in the given script
src/main/java/groovy/lang/GroovyClassLoader.java:294
↓ 22 callers
Method
poll
{@inheritDoc}
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/LinkedDeque.java:329
↓ 22 callers
Method
popState
()
src/main/java/org/codehaus/groovy/classgen/VariableScopeVisitor.java:150
↓ 22 callers
Method
put
{@inheritDoc}
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/SimpleCache.java:57
↓ 22 callers
Method
readLine
Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed
src/main/java/groovy/io/LineColumnReader.java:154
↓ 22 callers
Method
setGenericsTypes
Sets the generic type parameters for this method. Invalidates cached data like the type descriptor. @param genericsTypes array of {@link GenericsType
src/main/java/org/codehaus/groovy/ast/MethodNode.java:392
↓ 22 callers
Method
setRedirect
Sets this instance as a proxy for the given {@code ClassNode}, enabling deferred class resolution. After calling this method, most operations on this
src/main/java/org/codehaus/groovy/ast/ClassNode.java:311
↓ 22 callers
Method
visit
Visits the supplied expression when present. @param expression the expression to visit @return {@code null}
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/dsl/GinqAstBaseVisitor.java:225
↓ 21 callers
Method
addGeneratedConstructor
Adds a method that is marked as {@code @Generated}. @see ClassNode#addConstructor(int, Parameter[], ClassNode[], Statement) @since 2.5.3
src/main/java/org/apache/groovy/ast/tools/ClassNodeUtils.java:146
↓ 21 callers
Method
build
Builds this object into the supplied builder. @param builder the target builder
src/main/java/groovy/lang/Buildable.java:31
↓ 21 callers
Method
complain
Throws a {@link groovy.json.JsonException} for the current location. @param complaint message describing the parse failure
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/JsonParserCharArray.java:215
↓ 21 callers
Method
getExpressions
Returns the list of all expressions in this tuple. Note: The returned list may be mutable; modifications affect this tuple. @return a list of express
src/main/java/org/codehaus/groovy/ast/expr/TupleExpression.java:145
↓ 21 callers
Method
getFields
Returns all {@link FieldNode}s declared in this ClassNode, including inherited fields. If this node is a proxy (has a redirect), the call is forwarded
src/main/java/org/codehaus/groovy/ast/ClassNode.java:992
↓ 21 callers
Method
getGetterName
Builds the getter name for the singleton accessor. Shared with {@link SingletonASTStubber} so both transforms agree on naming.
src/main/java/org/codehaus/groovy/transform/SingletonASTTransformation.java:124
↓ 21 callers
Method
getMessage
Returns the detail message string of this error. The message will consist of the bug text prefixed by "BUG! " if this instance was created using a mes
src/main/java/org/codehaus/groovy/GroovyBugError.java:85
↓ 21 callers
Method
getNullObject
Returns the NullObject reference. @return the null object
src/main/java/org/codehaus/groovy/runtime/NullObject.java:41
↓ 21 callers
Method
getStatementLabels
Returns the list of labels attached to this statement, or null if no labels are present. Labels enable goto-like functionality in loops via break/cont
src/main/java/org/codehaus/groovy/ast/stmt/Statement.java:50
↓ 21 callers
Method
handle
Rethrows the supplied exception as an internal JSON exception. @param e the exception to wrap
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/Exceptions.java:72
↓ 21 callers
Method
isAtLeast
Compares a String representing a number to another. A fluent API style alias for {@code compareTo} on {@code BigDecimal}. @param left a String repre
src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java:3129
↓ 21 callers
Method
isBlank
Tests if this CharSequence is blank. @return {@code true} if this CharSequence is blank @since 2.5.0 @see #isAllWhitespace(CharSequence)
src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java:3805
↓ 21 callers
Method
isConstructor
Indicates whether this element represents a constructor. @return {@code true} if this element is a constructor
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/groovydoc/GroovyDoc.java:66
↓ 21 callers
Method
isDerivedFrom
Indicates whether this union is compatible with the supplied type.
src/main/java/org/codehaus/groovy/transform/stc/UnionTypeClassNode.java:519
↓ 21 callers
Method
isSuperExpression
Indicates whether this variable expression represents the {@code super} keyword. @return true if this is a super expression; false otherwise
src/main/java/org/codehaus/groovy/ast/expr/VariableExpression.java:317
↓ 21 callers
Method
isTrue
(final NodeMetaDataHandler obj, final String key)
src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java:4835
↓ 21 callers
Method
listIterator
()
src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java:1760
↓ 21 callers
Method
makeHtmltool
(ArrayList<LinkArgument> links, String javaVersion, Properties props)
subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/GroovyDocToolTest.java:99
↓ 21 callers
Method
normaliseIndex
Converts a possibly negative index to a real index into the array. @param i the unnormalized index @param size the array size @return the normalis
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethodsSupport.java:140
↓ 21 callers
Method
notX
Creates a logical NOT expression. @param expr the expression @return the resulting NotExpression
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1513
↓ 21 callers
Method
out
Create a new OutParameter @param type the JDBC data type. @return an OutParameter
subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:1089
↓ 21 callers
Method
parseIntFromTo
Parses an {@code int} from a character range. @param digitChars the digit characters to parse @param offset the inclusive range start @param to the e
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/CharScanner.java:254
↓ 21 callers
Method
pushState
(final boolean isStatic)
src/main/java/org/codehaus/groovy/classgen/VariableScopeVisitor.java:140
↓ 21 callers
Method
resolve
Resolves a type using the standard Groovy lookup rules. @param type the type to resolve @return {@code true} if the type was resolved
src/main/java/org/codehaus/groovy/control/ResolveVisitor.java:459
↓ 21 callers
Method
setModifiers
Unsupported for union types.
src/main/java/org/codehaus/groovy/transform/stc/UnionTypeClassNode.java:599
↓ 21 callers
Method
visitForLoop
Visits a for loop statement. @param statement the {@link ForStatement} to process
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java:109
↓ 20 callers
Method
add
Adds source files to the documentation set. @param filenames relative source file paths to process @throws IOException if a file cannot be read
subprojects/groovy-groovydoc/src/main/java/org/codehaus/groovy/tools/groovydoc/GroovyDocTool.java:139
↓ 20 callers
Method
addSource
Adds a source file to the unit.
src/main/java/org/codehaus/groovy/control/CompilationUnit.java:547
↓ 20 callers
Method
box
turns an int array to an Integer array
src/test/groovy/org/codehaus/groovy/runtime/MethodRankHelperTest.java:81
↓ 20 callers
Method
cancel
Attempts to cancel the computation. If the computation has not yet started or is still running, it will be cancelled with a {@link CancellationExcepti
src/main/java/groovy/concurrent/Awaitable.java:141
↓ 20 callers
Method
collect
Collects recursive call expressions from the supplied method. @param method the method to inspect @return the recursive calls found in the method bod
src/main/java/org/codehaus/groovy/transform/tailrec/CollectRecursiveCalls.java:42
↓ 20 callers
Method
collectSyntaxError
Adds the supplied GINQ syntax error to the current source unit. @param ginqSyntaxError the error to report
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/dsl/SyntaxErrorReportable.java:43
↓ 20 callers
Method
doCandidates
Adds completion candidates for the supplied values. @param candidates destination candidate list @param fields values to expose as candidates @param
subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyEngine.java:1536
↓ 20 callers
Method
from
Factory method to create {@link Queryable} instance @param iterable iterable object, e.g. {@link List} @param <T> the type of element @return the {@l
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java:75
↓ 20 callers
Method
getAnnotation
Returns the annotation of the specified type on this method, if present. @param <T> the annotation type @param annotationClass the class of the annot
src/main/java/org/codehaus/groovy/reflection/CachedMethod.java:234
↓ 20 callers
Method
getFieldName
Returns the name of the static field or method being imported via static import. @return the field name, or null if this is not a static field/method
src/main/java/org/codehaus/groovy/ast/ImportNode.java:167
↓ 20 callers
Method
getModifiers
Returns the ASM modifier flags for this method. Flags include visibility (public/protected/private), static, abstract, final, synchronized, etc. @ret
src/main/java/org/codehaus/groovy/ast/MethodNode.java:137
↓ 20 callers
Method
getTargetBytecode
Retrieves the compiler bytecode compatibility level. Defaults to the minimum officially supported bytecode version for any particular Groovy version.
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java:1152
↓ 20 callers
Method
getType
()
subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/testfiles/ClassWithAnonymousInnerClass.java:67
↓ 20 callers
Method
getValue
()
subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/testfiles/ClassWithAnonymousInnerClass.java:68
↓ 20 callers
Method
getValueVariable
Returns the value {@link Parameter} for for-in loops, or null if this is a classic for loop (represented internally with a dummy parameter). @return
src/main/java/org/codehaus/groovy/ast/stmt/ForStatement.java:163
↓ 20 callers
Method
isAssignableTo
Checks if a class node is assignable to another. This is used for example in assignment checks where you want to verify that the assignment is valid.
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java:459
↓ 20 callers
Method
isTargetAllowed
(final int target)
src/main/java/org/codehaus/groovy/ast/AnnotationNode.java:131
↓ 20 callers
Method
jump
Emits a conditional jump instruction and returns the newly created target label. The boolean operand is removed from the tracked stack. @param ifIns
src/main/java/org/codehaus/groovy/classgen/asm/OperandStack.java:203
↓ 20 callers
Method
loadClass
{@inheritDoc}
src/main/java/org/codehaus/groovy/tools/RootLoader.java:142
↓ 20 callers
Method
makeClassSafe0
@since 2.3.0
src/main/java/org/codehaus/groovy/ast/tools/GenericsUtils.java:381
↓ 20 callers
Method
next
Iterator method to get the next token of the stream. @return the next token
subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java:249
↓ 20 callers
Method
nextToken
@return the next token from the stream
subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java:76
↓ 20 callers
Method
popLHS
Pops the top left-hand-side flag, restoring the previous LHS state.
src/main/java/org/codehaus/groovy/classgen/asm/CompileStack.java:1059
↓ 20 callers
Method
resolveOrFail
(final ClassNode type, final ASTNode node)
src/main/java/org/codehaus/groovy/control/ResolveVisitor.java:393
↓ 20 callers
Method
set
Sets the element at the specified index. Not all node types support this operation. @param index the element index @param element the element to set
src/main/java/org/codehaus/groovy/syntax/CSTNode.java:403
↓ 20 callers
Method
setMember
(final String name, final Expression value)
src/main/java/org/codehaus/groovy/ast/AnnotationNode.java:79
↓ 20 callers
Method
setName
(String name)
subprojects/groovy-jmx/src/test/java/groovy/jmx/DummyMBean.java:32
↓ 20 callers
Method
sort
Sorts member information using the default comparator. @param memberInfo the member information to sort @return the sorted collection
src/main/java/groovy/inspect/Inspector.java:491
↓ 20 callers
Method
sum
Sums the items in an array. <pre class="language-groovy groovyTestCase">assert (1+2+3+4 as byte) == ([1,2,3,4] as byte[]).sum()</pre> @param self The
src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java:9214
↓ 20 callers
Method
visitAnnotations
Visits the annotations attached to the supplied node for the given target kind. @param node the annotated node to inspect @param target the annotatio
src/main/java/org/codehaus/groovy/classgen/ExtendedVerifier.java:357
↓ 20 callers
Method
visitCode
{@inheritDoc}
src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java:334
↓ 20 callers
Method
visitConstructorCallExpression
Visits a constructor call expression. @param expression the {@link ConstructorCallExpression} to process
src/main/java/org/codehaus/groovy/ast/GroovyCodeVisitor.java:251
↓ 19 callers
Method
asString
(Node node)
subprojects/groovy-xml/src/main/java/groovy/xml/XmlUtil.java:631
↓ 19 callers
Method
compareTo
{@inheritDoc}
subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/runtime/WritablePath.java:247
↓ 19 callers
Method
createNonAwareCallSite
(CallSite site, MetaClassImpl metaClass, MetaMethod metaMethod, Class[] params, Object[] args)
src/main/java/org/codehaus/groovy/runtime/callsite/PojoMetaMethodSite.java:169
↓ 19 callers
Method
evaluate
(String theSrcText, String testName)
src/tck/src/org/codehaus/groovy/tck/TestGeneratorHelper.java:24
↓ 19 callers
Method
floatValue
Converts this token to a float value. @return the float representation
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/Value.java:77
↓ 19 callers
Method
getClassLoader
Returns the class loader used to parse and load scripts. @return the shell class loader
src/main/java/groovy/lang/GroovyShell.java:209
↓ 19 callers
Method
getDeclaringClass
{@inheritDoc}
src/main/java/groovy/lang/MetaClassImpl.java:1891
↓ 19 callers
Method
getDeclaringClass
()
src/main/java/org/codehaus/groovy/runtime/metaclass/NewMetaMethod.java:57
↓ 19 callers
Method
getField
Returns the first matching field found across delegate types.
src/main/java/org/codehaus/groovy/transform/stc/UnionTypeClassNode.java:367
↓ 19 callers
Method
getInterfaces
Returns the effective interface view of this union type.
src/main/java/org/codehaus/groovy/transform/stc/UnionTypeClassNode.java:400
↓ 19 callers
Method
getJointCompilationOptions
()
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java:175
↓ 19 callers
Method
getKeyExpression
()
src/main/java/org/codehaus/groovy/ast/expr/MapEntryExpression.java:53
↓ 19 callers
Method
getMath
Determines which NumberMath instance to use for binary operations on two operands. <p> Implements the type promotion matrix: <pre> bD bI D F L
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMath.java:427
↓ 19 callers
Method
isEmpty
Returns whether the map currently contains any entries. @return {@code true} when no entries are stored
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/LazyMap.java:130
↓ 19 callers
Method
isStub
Returns true when {@code node} carries the stubber-placeholder tag.
src/main/java/org/codehaus/groovy/transform/StubberSupport.java:94
↓ 19 callers
Method
normalizeWhitespace
(String text)
subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/GroovyDocToolTest.java:1056
↓ 19 callers
Method
pickMethod
Selects a method by name and argument classes. This method does not search for an exact match, it searches for a compatible method. For this the metho
src/main/java/groovy/lang/MetaClass.java:205
↓ 19 callers
Method
setAccessedVariable
Sets the variable that this expression accesses. This is typically used to link a variable expression to the actual variable definition (local variabl
src/main/java/org/codehaus/groovy/ast/expr/VariableExpression.java:117
↓ 19 callers
Method
setImplicitThis
(final boolean implicitThis)
src/main/java/org/codehaus/groovy/ast/expr/PropertyExpression.java:100
↓ 19 callers
Method
setRedirect
(final ClassNode type, final ClassNode classToCheck)
src/main/java/org/codehaus/groovy/control/ResolveVisitor.java:559
↓ 19 callers
Method
setVariable
Sets the value of the given variable @param name the name of the variable to set @param value the new value for the given variable
src/main/java/groovy/lang/Binding.java:81
↓ 19 callers
Method
subList
{@inheritDoc}
src/main/java/groovy/lang/Tuple.java:104
↓ 19 callers
Method
subtract
Subtracts two numbers using type promotion rules. @param left the minuend @param right the subtrahend @return the difference using the appropriate Nu
src/main/java/org/codehaus/groovy/runtime/typehandling/NumberMath.java:75
↓ 19 callers
Method
toCalendar
Returns a generally equivalent {@link java.util.Calendar} in the GMT time zone, truncated to milliseconds. @param self an Instant @return a Calendar
subprojects/groovy-datetime/src/main/java/org/apache/groovy/datetime/extensions/DateTimeExtensions.java:539
↓ 19 callers
Method
visit
(GroovyCodeVisitor visitor)
src/main/java/org/codehaus/groovy/ast/expr/MethodCallExpression.java:101
↓ 19 callers
Method
withStream
Allows this input stream to be used within the closure, ensuring that it is flushed and closed before this method returns. @param stream the stream
src/main/java/org/codehaus/groovy/runtime/IOGroovyMethods.java:1188
↓ 18 callers
Method
addError
Reports an error against the current annotation. @param msg the error message
src/main/java/org/codehaus/groovy/classgen/AnnotationVisitor.java:342
↓ 18 callers
Method
asList
Converts this Iterable to a List. Returns the original Iterable if it is already a List. <p> Example usage: <pre class="language-groovy groovyTestCase
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java:1100
↓ 18 callers
Method
assertAsBoolean
Asserts the asBoolean method returns the given flag
src/test/groovy/org/codehaus/groovy/runtime/InvokerTest.java:117
↓ 18 callers
Method
contains
{@inheritDoc}
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/LinkedDeque.java:198
↓ 18 callers
Method
defaultValueX
Returns a constant expression with the default value for the given type (i.e., {@code false} for boolean, {@code 0} for numbers or {@code null}). @si
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:751
↓ 18 callers
Method
ensureExecutes
(final String target)
subprojects/groovy-ant/src/test/groovy/org/codehaus/groovy/ant/GroovycTest.java:146
← previous
next →
601–700 of 19,657, ranked by callers