# Deprecated API

## Contents

- Deprecated Class
- Deprecated Annotation Type
- Deprecated Method
- Deprecated Field
- Deprecated Property

- Deprecated Fields
  Field and Description
  GroovyLexer#tokenNames | deprecated: Use VOCABULARY instead.
  GroovyParser#tokenNames | deprecated: Use VOCABULARY instead.
  GroovySystem#RUNNER_REGISTRY | Reference to the Runtime Registry to be used by the Groovy run-time system to find classes capable of running scripts
  MetaClassRegistryImpl#MODULE_META_INF_FILE | deprecated: Use ExtensionModuleScanner.MODULE_META_INF_FILE instead

- Deprecated Properties
  Property and Description
  CliBuilder#posix | To change from the default PosixParser to the GnuParser, set this to false.

- Deprecated Classes
  Class and Description
  MixinASTTransformation deprecated: static mixins have been deprecated in favour of traits (trait keyword).

- Deprecated Annotation Types
  Annotation Type and Description
  Mixin Provides a mechanism for mixing in methods into a class.

- Deprecated Methods
  Method and Description
  CompileStack#pushBooleanExpression() Because a boolean Expression may not be evaluated completely it is important to keep the registers clean.
  CompilerConfiguration#getOutput() Gets the currently configured output writer.
  CompilerConfiguration#setOutput(PrintWriter output) Sets the output writer.
  Console#run(JApplet applet) Runs the console embedded in the given applet.
  DefaultGroovyMethods#chop$$bridge(Iterator self, int chopSizes) Chops the iterator items into pieces, returning lists with sizes corresponding to the supplied chop sizes.
  DefaultGroovyMethods#findIndexValues$$bridge(Iterator self, Closure condition) Iterates over the elements of an Iterator and returns the index values of the items that match the condition specified in the closure.
  DefaultGroovyMethods#findIndexValues$$bridge(Iterator self, Number startIndex, Closure condition) Iterates over the elements of an Iterator, starting from a specified startIndex, and returns the index values of the items that match the condition specified in the closure.
  GeneralUtils#makeDescriptorWithoutReturnType(MethodNode mn) deprecated: use MethodNodeUtils#methodDescriptorWithoutReturnType(MethodNode) instead
  GenericsUtils#alignGenericTypes(GenericsType redirectGenericTypes, GenericsType parameterizedTypes, GenericsType alignmentTarget) Given a parameterized type and a generic type information, aligns actual type parameters.
  GenericsUtils#parameterizeInterfaceGenerics(ClassNode hint, ClassNode target) Interface class nodes retrieved from ClassNode.getInterfaces or ClassNode.getAllInterfaces are returned with generic type arguments.
  GroovyCategorySupport#hasCategoryInAnyThread() deprecated: use hasCategoryInCurrentThread()
  Groovyc#makeCompileUnit() deprecated: This method is not in use anymore.
  IndyInterface#fromCache(CacheableCallSite callSite, Class sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object arguments) Get the cached methodHandle. if the related methodHandle is not found in the inline cache, cache and return it.
  IndyInterface#selectMethod(CacheableCallSite callSite, Class sender, String methodName, int callID, Boolean safeNavigation, Boolean thisCall, Boolean spreadCall, Object dummyReceiver, Object arguments) Core method for indy method selection using runtime types.
  MetaClassHelper#capitalize(String property) deprecated: Use BeanUtils.capitalize instead
  MethodNode#getTypeDescriptor(boolean pretty) deprecated: use MethodNodeUtils.methodDescriptor
  ReferenceManager#getDefaultSoftBundle() deprecated: use ReferenceBundle.getSoftBundle
  ReferenceManager#getDefaultWeakBundle() deprecated: use ReferenceBundle.getWeakBundle
  ReturnAdder#addReturnIfNeeded(MethodNode node) deprecated: Use visitMethod(MethodNode) instead.
  Sql#preCheckForNamedParams(String sql) deprecated: Use buildSqlWithIndexedProps(String) instead
  StaticTypeCheckingSupport#evaluateExpression(Expression expr, CompilerConfiguration config) deprecated: Use evaluateExpression(Expression, CompilerConfiguration, GroovyClassLoader) instead
  StaticTypeCheckingSupport#findDGMMethodsByNameAndArguments(ClassNode receiver, String name, ClassNode args) deprecated: Use findDGMMethodsByNameAndArguments(ClassLoader, ClassNode, String, ClassNode[], List) instead
  StaticTypeCheckingSupport#findDGMMethodsByNameAndArguments(ClassNode receiver, String name, ClassNode args, List methods) deprecated: Use findDGMMethodsByNameAndArguments(ClassLoader, ClassNode, String, ClassNode[], List) instead
  StaticTypeCheckingSupport#findDGMMethodsForClassNode(ClassNode clazz, String name) deprecated: Use findDGMMethodsForClassNode(ClassLoader, ClassNode, String) instead
  StaticTypeCheckingSupport#findDGMMethodsForClassNode(ClassNode clazz, String name, TreeSet accumulator) deprecated: Use findDGMMethodsForClassNode(ClassLoader, ClassNode, String, TreeSet) instead
  StaticTypeCheckingVisitor#checkClosureParameters(Expression callArguments, ClassNode receiver) deprecated: this method is unused, replaced with DelegatesTo inference.
  StructuredSyntaxDocumentFilter.MultiLineRun#getDelimeterSize() deprecated: use getDelimiterSize() instead
  XmlSlurper#setKeepWhitespace(boolean keepWhitespace) deprecated: use setKeepIgnorableWhitespace