MCPcopy Create free account

hub / github.com/apache/groovy / functions

Functions19,657 in github.com/apache/groovy

↓ 71 callersMethodvisit
The method is invoked when an AST Transformation is active. For local transformations, it is invoked once each time the local annotation is encountere
src/main/java/org/codehaus/groovy/transform/ASTTransformation.java:48
↓ 70 callersMethodendsWith
{@inheritDoc}
subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/runtime/WritablePath.java:157
↓ 69 callersMethodisPlaceholder
Returns true if this generic type represents a type variable placeholder (e.g., T in <T>). @return true if this is a placeholder type variable
src/main/java/org/codehaus/groovy/ast/GenericsType.java:217
↓ 69 callersMethodparseInt
Parses an {@code int} from the supplied digit characters. @param digitChars the digit characters to parse @return the parsed value
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/CharScanner.java:242
↓ 68 callersMethodassignS
Creates an assignment statement for the supplied target and value. @param target the assignment target expression @param value the value expression @
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:291
↓ 68 callersMethodjoin
Concatenates the string representation of each item in this array. @param self an array of boolean @return the joined String @since 5.0.0
src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java:5573
↓ 67 callersMethodaddTranslation
Adds an element to the TEXTS and LOOKUP.
src/main/java/org/codehaus/groovy/syntax/Types.java:1358
↓ 66 callersMethodapply
(T t)
src/main/java/org/apache/groovy/internal/util/Function.java:30
↓ 66 callersMethodexists
Check if the result is empty, similar to SQL's {@code exists} @return the result of checking, {@code true} if result is not empty, otherwise {@code f
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java:332
↓ 66 callersMethodgetValue
The object holding the data value. @return the value
subprojects/groovy-sql/src/main/java/groovy/sql/InParameter.java:36
↓ 65 callersMethodadd
Adds a parsed entry without forcing full map hydration. @param miv entry to append
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/ValueMap.java:36
↓ 65 callersMethodcheckCall
(Object receiver, Object[] args)
src/main/java/org/codehaus/groovy/runtime/callsite/ConstructorSite.java:54
↓ 65 callersMethodgetLowerBound
Returns the lower bound for this wildcard type (e.g., Bound in "? super Bound"), or null if this is not a lower-bounded wildcard. @return the lower b
src/main/java/org/codehaus/groovy/ast/GenericsType.java:260
↓ 65 callersMethodresolveType
Resolve the type of an expression. Depending on the implementations, the returned type may be the declared type or an inferred type. @param expression
src/main/java/org/codehaus/groovy/classgen/asm/TypeChooser.java:38
↓ 65 callersMethodtuple
Construct a tuple of degree 0.
src/main/java/groovy/lang/Tuple.java:186
↓ 64 callersMethoddoGroovyCast
do Groovy cast for top level element
src/main/java/org/codehaus/groovy/classgen/asm/OperandStack.java:343
↓ 64 callersMethodunlock
Releases the lock for this class information.
src/main/java/org/codehaus/groovy/reflection/ClassInfo.java:505
↓ 63 callersMethodaddDescription
Adds a description to the set.
src/main/java/org/codehaus/groovy/syntax/Types.java:1548
↓ 63 callersMethodformat
Formats the given object as a string with optional verbosity. @param arguments the object to format @param verbose if true, uses inspect mode with es
src/main/java/org/codehaus/groovy/runtime/FormatHelper.java:120
↓ 63 callersMethodgetDeclaringClass
Gets the class where this method is declared. @return class of this method
src/main/java/groovy/lang/MetaMethod.java:83
↓ 63 callersMethodgetV1
Returns the first element. @return the first element
src/main/java/groovy/lang/Tuple6.java:133
↓ 62 callersMethodbox
Boxes the top operand if it is a primitive type, emitting the appropriate wrapper-creation bytecode, and returns the resulting (possibly wrapped) type
src/main/java/org/codehaus/groovy/classgen/asm/OperandStack.java:242
↓ 62 callersMethodgetParameterTypes
@return the parameter types of the longest doCall method of this closure
src/main/java/groovy/lang/Closure.java:615
↓ 62 callersMethodlock
Acquires a lock for this class information. Used to synchronize modifications to metaclass and per-instance metaclass maps.
src/main/java/org/codehaus/groovy/reflection/ClassInfo.java:498
↓ 62 callersMethodprettyPrintType
Returns string representation of type with generics. Arrays are indicated with trailing "[]".
src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java:850
↓ 61 callersMethodeach
Iterates through a boolean[] passing each boolean to the given consumer. <pre class="language-groovy groovyTestCase"> boolean[] array = [false, true,
src/main/java/org/codehaus/groovy/runtime/ArrayGroovyMethods.java:1700
↓ 61 callersMethodisPublic
Returns true if this variable is declared with the {@code public} modifier. @return true if public @since 5.0.0
src/main/java/org/codehaus/groovy/ast/Variable.java:162
↓ 61 callersMethodmax
Aggregate function {@code max}, similar to SQL's {@code max} @param mapper choose the field to find the maximum @param <U> the field type @return min
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java:437
↓ 60 callersMethodapply
Processes a single message and returns the reply. @param ctx the actor context @param message the incoming message @return the reply value
src/main/java/groovy/concurrent/ReactorHandler.java:44
↓ 60 callersMethodcomputeIfAbsent
If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this ma
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/ConcurrentLinkedHashMap.java:835
↓ 60 callersMethodcreateRange
Creates a {@link Range} to test. @param from the first value in the range. @param to the last value in the range. @return a {@link Range} to test
src/test/groovy/groovy/lang/NumberRangeTestCase.java:74
↓ 60 callersMethodisFinal
Returns true if this variable is declared with the {@code final} modifier. @return true if final @since 5.0.0
src/main/java/org/codehaus/groovy/ast/Variable.java:132
↓ 60 callersMethodisWildcard
Returns true if this generic type represents a wildcard (e.g., ? or ? extends/super Bound). @return true if this is a wildcard type
src/main/java/org/codehaus/groovy/ast/GenericsType.java:239
↓ 59 callersMethodctorX
Creates a constructor call expression. @param type the target type @param args the argument expression(s) @return the resulting ConstructorCallExpres
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:648
↓ 59 callersMethodgetModifiers
Returns the Java modifier bit set for this meta member. @return the modifier flags
src/main/java/groovy/lang/MetaMember.java:42
↓ 59 callersMethodgetProperties
Retrieves a list of MetaProperty instances that the MetaClass has @see MetaProperty @return A list of MetaProperty instances
src/main/java/groovy/lang/MetaClass.java:156
↓ 59 callersMethodvisitMethod
Visit a MethodNode.
src/main/java/org/codehaus/groovy/ast/GroovyClassVisitor.java:43
↓ 58 callersMethodgetAccessedVariable
Returns the variable that this expression accesses. If not explicitly set, returns null, indicating this expression represents a standalone variable r
src/main/java/org/codehaus/groovy/ast/expr/VariableExpression.java:183
↓ 58 callersMethodgetLineNumber
Returns the line number where this AST node begins in the source file. Line numbers start from 1. Returns -1 if position information is not available
src/main/java/org/codehaus/groovy/ast/ASTNode.java:83
↓ 58 callersMethodstart
()
subprojects/groovy-jmx/src/test/java/groovy/jmx/DummyMBean.java:22
↓ 58 callersMethodtryFind
(final Class<?> clazz, final ASTNode node)
subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/matcher/ASTFinder.java:123
↓ 57 callersMethodaddKeyword
Adds an element to the KEYWORDS, TEXTS and LOOKUP.
src/main/java/org/codehaus/groovy/syntax/Types.java:1366
↓ 57 callersMethodaddMethod
Adds a {@link MethodNode} to this ClassNode. The method is added to the internal methods list and registered by name in the methods map for fast looku
src/main/java/org/codehaus/groovy/ast/ClassNode.java:856
↓ 57 callersMethodendsWith
(String suffix)
src/main/java/org/codehaus/groovy/runtime/GStringImpl.java:375
↓ 57 callersMethodentrySet
Returns a live view of the cache entries. @return the cache entries
src/main/java/org/codehaus/groovy/runtime/memoize/CommonCache.java:177
↓ 57 callersMethodorElse
Returns the value bound to this scoped-local, or {@code other} if no binding is active and no initial supplier is configured. @param other the fallba
src/main/java/org/apache/groovy/runtime/async/ScopedLocal.java:184
↓ 57 callersMethodpushContext
Pushes an explicit traversal context. @param ctx the context to push
subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/matcher/ContextualClassCodeVisitor.java:132
↓ 56 callersMethodcreate
Creates a growable buffer with the supplied capacity.
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/CharBuf.java:73
↓ 56 callersMethodgetCachedClass
Retrieves the {@code CachedClass} for the given Java class. Returns {@code null} if the class is {@code null}. @param klazz the Java class for which
src/main/java/org/codehaus/groovy/reflection/ReflectionCache.java:48
↓ 56 callersMethodgetClassLoader
Returns the class loader used for resolving external types. @return the {@link ClassLoader}, or {@code null} if not set
src/main/java/org/codehaus/groovy/syntax/ASTHelper.java:114
↓ 56 callersMethodgetType
Returns the underlying {@link ClassNode} for this generic type. @return the type
src/main/java/org/codehaus/groovy/ast/GenericsType.java:81
↓ 56 callersMethodinfo
Convenience method for logging info level messages with the platform logger. @param logger the Optional
src/main/java/org/codehaus/groovy/vmplugin/v9/PluginDefaultGroovyMethods.java:40
↓ 56 callersMethodisSet
Checks if a config option is set. Example usage: <pre class="language-groovy groovyTestCase"> def config = new ConfigSlurper().parse("foo { password='
src/main/java/groovy/util/ConfigObject.java:436
↓ 56 callersMethodpopContext
Pops the current traversal context. @return the popped context
subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/matcher/ContextualClassCodeVisitor.java:141
↓ 56 callersMethodvisit
Visit tree safely, no NPE occurred when the tree is null. @param tree an AST node @return the visiting result
src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java:4559
↓ 55 callersMethodaddLast
{@inheritDoc}
src/main/java/org/apache/groovy/util/concurrent/concurrentlinkedhashmap/LinkedDeque.java:321
↓ 55 callersMethodgetInitialExpression
Returns the initialization expression for this variable, or null if no initialization is present. For fields and local variables, this may contain the
src/main/java/org/codehaus/groovy/ast/Variable.java:73
↓ 55 callersMethodisPrivate
Returns true if this variable is declared with the {@code private} modifier. @return true if private @since 5.0.0
src/main/java/org/codehaus/groovy/ast/Variable.java:142
↓ 55 callersMethodnormaliseIndex
(int i, int size)
src/main/java/org/codehaus/groovy/runtime/dgmimpl/arrays/ArrayMetaMethod.java:31
↓ 55 callersMethodof
Returns an immutable map containing the supplied key-value pairs in encounter order.
src/main/java/org/apache/groovy/util/Maps.java:34
↓ 55 callersMethodsetSynthetic
Marks this node as having been added by the compiler (synthetic). Synthetic nodes include auto-generated methods, constructors, and other compiler-ins
src/main/java/org/codehaus/groovy/ast/AnnotatedNode.java:193
↓ 54 callersMethodentrySet
{@inheritDoc}
src/main/java/org/codehaus/groovy/util/ListHashMap.java:107
↓ 54 callersMethodgetExceptions
Returns the list of checked exceptions declared in the method's throws clause. @return array of exception {@link ClassNode} types, or empty array if
src/main/java/org/codehaus/groovy/ast/MethodNode.java:351
↓ 54 callersMethodifS
Creates an if statement with an empty else branch. @param cond the condition expression @param trueExpr the true-branch expression @return the result
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1269
↓ 54 callersMethodsetAttribute
Sets the value of an attribute (field). This method is to support the Groovy runtime and not for general client API usage. @param sender The class of
src/main/java/groovy/lang/MetaClass.java:135
↓ 54 callersMethodsetProperty
Sets the given property to the new value. @param propertyName the name of the property of interest @param newValue the new value for the property
subprojects/groovy-groovydoc/src/test/groovy/org/codehaus/groovy/tools/groovydoc/testfiles/JavaHiddenInterfaceInheritDoc.java:53
↓ 54 callersMethodsize
Returns the count of elements of the {@link Queryable} instance @return the count of elements of the {@link Queryable} instance @since 4.0.0
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java:520
↓ 53 callersMethodgetPlainNodeReference
Returns a plain-node copy of this union type.
src/main/java/org/codehaus/groovy/transform/stc/UnionTypeClassNode.java:429
↓ 53 callersMethodgetType
Returns the type of this expression. If the type has not been explicitly set, this method returns a dynamic type to support dynamic typing. @return t
src/main/java/org/codehaus/groovy/ast/expr/Expression.java:55
↓ 53 callersMethodmin
Aggregate function {@code min}, similar to SQL's {@code min} @param mapper choose the field to find the minimum @param <U> the field type @return min
subprojects/groovy-ginq/src/main/groovy/org/apache/groovy/ginq/provider/collection/runtime/Queryable.java:427
↓ 52 callersMethodaddAll
Appends every element from the supplied collection and notifies listeners when anything was added. @param es the elements to append @return {@code tr
subprojects/groovy-swing/src/main/groovy/groovy/swing/impl/ListWrapperListModel.java:172
↓ 52 callersMethodenter
Tests {@code n} then, unless pruned, descends into it while tracking context.
src/main/java/org/codehaus/groovy/ast/query/AstQuery.java:413
↓ 52 callersMethodinit
Initializes the transformation with the annotation and source unit context. This method must be called before the transformation processes any AST nod
src/main/java/org/codehaus/groovy/transform/AbstractASTTransformation.java:120
↓ 52 callersMethodisImplicitThis
Returns {@code true} if the current {@code this} reference is implicit (no explicit qualifier).
src/main/java/org/codehaus/groovy/classgen/asm/CompileStack.java:1065
↓ 52 callersMethodlocalVarX
Creates a local variable expression and marks it as the accessed variable. @param name the property name @return the resulting VariableExpression
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:1395
↓ 52 callersMethodprintln
Prints a line to the underlying <code>PrintStream</code>
src/main/java/org/codehaus/groovy/tools/ErrorReporter.java:150
↓ 52 callersMethodremove
Remove amount elements from the operand stack, without using pop. For example after a method invocation
src/main/java/org/codehaus/groovy/classgen/asm/OperandStack.java:259
↓ 52 callersMethodrun
Runs the given class. @param scriptClass class to run @param loader used to locate classes and resources @return result of running the class
src/main/java/org/apache/groovy/plugin/GroovyRunner.java:47
↓ 51 callersMethodcloseWithWarning
Close the Closeable. Logging a warning if any problems occur. @param closeable the thing to close
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethodsSupport.java:156
↓ 51 callersMethodcompare
Compares its two arguments for order. @param v1 The int value to compare. @param v2 The int value to compare. @return If v1 is less than v2, returns
src/main/java/groovy/util/function/IntComparator.java:33
↓ 51 callersMethodgetParameterTypes
()
src/main/java/org/codehaus/groovy/runtime/CurriedClosure.java:194
↓ 51 callersMethodgetParameters
Hook to allow derived classes to override behavior associated with extracting params from a GString. @param gstring a GString containing the SQL quer
subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:4762
↓ 51 callersMethodgetProject
# Gets the Ant project in which the tasks are executed @return the project
subprojects/groovy-ant/src/main/java/groovy/ant/AntBuilder.java:172
↓ 51 callersMethodgetPropertyAsString
()
src/main/java/org/codehaus/groovy/ast/expr/PropertyExpression.java:78
↓ 51 callersMethodimplementsInterface
@param classNode the class node for the interface @return {@code true} if this type implements the given interface
src/main/java/org/codehaus/groovy/ast/ClassNode.java:1372
↓ 51 callersMethodsubListBorders
Helper method for getAt and putAt.
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethodsSupport.java:75
↓ 51 callersMethodtoString
Returns a string representation of the given object. @param arguments the object to convert to a string @return a string representation
src/main/java/org/codehaus/groovy/runtime/FormatHelper.java:99
↓ 51 callersMethodvalueOf
(Object obj)
subprojects/groovy-console/src/main/groovy/groovy/console/ui/text/StructuredSyntaxDocumentFilter.java:631
↓ 51 callersMethodvisitTypeInsn
{@inheritDoc}
src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java:369
↓ 50 callersMethodaddExpression
(Expression expression)
src/main/java/org/codehaus/groovy/ast/expr/ListExpression.java:45
↓ 50 callersMethoddeclS
Creates a variable declaration statement. @param target the assignment target expression @param init the initializer expression @return the resulting
src/main/java/org/codehaus/groovy/ast/tools/GeneralUtils.java:731
↓ 50 callersMethodgetModule
()
src/main/java/org/codehaus/groovy/ast/ClassNode.java:347
↓ 50 callersMethodgetV2
Returns the second element. @return the second element
src/main/java/groovy/lang/Tuple6.java:142
↓ 50 callersMethodlastIndexOf
Returns the last index of the supplied element in the backing list. @param o the element to search for @return the last matching index, or {@code -1}
subprojects/groovy-swing/src/main/groovy/groovy/swing/impl/ListWrapperListModel.java:103
↓ 50 callersMethodpop
Restores the compilation state that was saved by the matching {@code push } call, and emits end-labels for all local variables declared within the sco
src/main/java/org/codehaus/groovy/classgen/asm/CompileStack.java:324
↓ 50 callersMethodvisitFieldInsn
{@inheritDoc}
src/main/java/org/codehaus/groovy/classgen/asm/util/LoggableTextifier.java:376
↓ 49 callersMethodcompareTo
Compares a Character and a Number. The ordinal value of the Character is used in the comparison (the ordinal value is the unicode value which for simp
src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java:3715
↓ 49 callersMethodgetColumnNumber
Returns the column number where this AST node begins in the source file. Column numbers are 0-indexed. Returns -1 if position information is unavailab
src/main/java/org/codehaus/groovy/ast/ASTNode.java:104
↓ 49 callersMethodisTrait
Returns true if the specified class node is a trait. @param cNode a class node to test @return true if the classnode represents a trait
src/main/java/org/codehaus/groovy/transform/trait/Traits.java:342
↓ 49 callersMethodmakeCached
Creates a cached {@link ClassNode} for the given Java class. Cached instances are reused across the compilation unit, reducing memory overhead. If the
src/main/java/org/codehaus/groovy/ast/ClassHelper.java:260
← previousnext →201–300 of 19,657, ranked by callers