Yahoo Search Busca da Web

Resultado da Busca

  1. Apache Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax.

    • Documentation

      The documentation is available as a single-page document, or...

    • Learn

      Learn. Welcome to the learning section of the Groovy...

    • Support

      Support. There are numerous ways to get help with Groovy:...

  2. Aprenda o que é o Groovy, uma linguagem orientada a objetos que roda na JVM e tem influência de Ruby e Java. Veja como instalar, configurar e usar o Groovy console, uma ferramenta interativa para testar códigos.

    • Environment
    • Basic Features
    • Ast Transforms
    • Properties
    • Strings
    • Control Structures
    • Exception Handling
    • Closures
    • Conclusion

    If we want to use Groovy in Maven projects, we need to add the following to the pom.xml: The most recent Maven plugin can be found here and the latest version of the groovy-all here.

    There are many useful features in Groovy. Now, let’s look at the basic building blocks of the language and how it differs from Java. Now, let’s look at the basic building blocks of the language and how it differs from Java.

    AST (Abstract Syntax Tree) transforms allows us to hook into the Groovy compilation process and customize it to meet our needs. This is done at compilation time, so there is no performance penalty when running application. We can create our AST transformations, but we can also use the built-in ones. We can create our transformations, or we can bene...

    In Groovy, we can create POGOs (Plain Old Groovy Objects) that work the same way as POJOs in Java, although they’re more compact because getters and setters are automatically generated for public propertiesduring compilation. It’s important to remember that they will be generated only if they’re not already defined. This gives us the flexibility of...

    There are multiple ways for expressing string literals. The approach used in Java (double-quoted strings) is supported, but it is also allowed to use single quotes when preferred. Multi-line strings, sometimes called heredocs in other languages, are also supported, using triple quotes (either single or double). Strings defined with double quotes su...

    9.1. Conditionals: if-else

    Groovy supports the conditional if/elsesyntax as expected:

    9.2. Conditionals: switch-case

    The example above will print number.

    9.3. Loops: while

    Groovy supports the usual while loops like Java does:

    The big difference is that checked exceptions handling is not enforced. To handle general exceptions, we can place the potentially exception-causing code in a try/catchblock: By not declaring the type of exception we catch, any exception will be caught here.

    Simply put, a closure is an anonymous block of executable code which can be passed to variables and has access to data in the context where it was defined. They’re also similar to anonymous inner classes, although they don’t implement an interface or extend a base class. They are similar to lambdas in Java. Interestingly, Groovy can take full advan...

    This article provided a quick introduction to the Groovy language and its key features. We started by introducing simple concepts such as basic syntax, conditional statements, and operators. We also demonstrated some more advanced features such as operators and closures. If you want to find more information about the language and it’s semantics, yo...

  3. 18 de mai. de 2022 · O Groovy, linguagem de programação também conhecida como Apache Groovy, é compatível com a sintaxe Java, orientado a objetos e desenvolvido para a máquina virtual Java (JVM). Na prática, isso significa que o código Groovy pode rodar em Windows, Linux, Mac desde que possuam uma JVM para interpretação.

  4. Saiba o que é Groovy, uma linguagem de scripts 100% compatível com Java que possui recursos como closures e atribute accessors. Veja como usar Groovy para desenvolver aplicações mais rápidas e produtivas em plataforma Java.

    • Marcelo Castellani
  5. A linguagem Groovy é uma linguagem completamenta baseada na plataforma Java e contém recursos que vão muito além das linguagens de programação atuais. Nesta vídeo-aula você irá descobrir o potencial desta incrível linguagem de programação.

  6. Learn how to use Groovy, a dynamic language for the Java platform, with this comprehensive documentation. Find guides, specifications, tools, API references, and more for Groovy versions.

  1. As pessoas também buscaram por