Xtend User Guide

  1. Introduction
    1. Getting Started
      1. Hello World
      2. The Runtime Library
      3. The Xtend Tutorial
      4. Maven Support
  2. Types
    1. Conformance and Conversion
  3. Classes and Members
    1. Package Declaration
    2. Imports
    3. Class Declaration
    4. Constructors
    5. Fields
    6. Methods
      1. Overriding Methods
      2. Declared Exceptions
      3. Inferred Return Types
      4. Dispatch Methods
        1. Dispatch Methods and Inheritance
        2. Static Dispatch Methods
    7. Annotations
    8. Extension Methods
      1. Local Extension Methods
      2. Library Extensions
      3. Extension Imports
      4. Extension Fields
  4. Expressions
    1. Literals
      1. String Literals
      2. Integer Literals
      3. Boolean Literals
      4. Null Literal
      5. Type Literals
      6. Function Types
    2. Type Casts
    3. Infix Operators and Operator Overloading
      1. Short-Circuit Boolean Operators
      2. Examples
      3. Assignments
    4. Variable Declarations
      1. Typing
    5. Feature Calls
      1. Property Access
      2. Implicit Variables this and it
      3. Null-Safe Feature Call
    6. Constructor Call
    7. Closures
      1. Typing
      2. Function Mapping
      3. Implicit Parameter it
      4. Exceptions in Closures
      5. Builder Syntax
    8. If Expression
    9. Switch Expression
      1. Type guards
    10. Blocks
    11. For Loop
    12. While Loop
    13. Do-While Loop
    14. Return Expression
    15. Throwing Exceptions
    16. Try, Catch, Finally
    17. Template Expressions
      1. Conditions in Templates
      2. Loops in Templates
      3. Typing
      4. White Space Handling