Xtend Language Reference

  1. Introduction
    1. Getting Started
  2. Classes and Functions
    1. Package Declaration
    2. Imports
    3. Class Declaration
      1. Inheritance
      2. Generics
      3. Examples
    4. Fields
      1. Extension Methods
    5. Functions
      1. Visibility
      2. Overriding Functions
      3. Declared Exceptions
      4. Inferred Return Types
      5. Generics
      6. Dispatch Functions
        1. Overloading Functions from Super Types
      7. Create Functions
        1. How it works
    6. Annotations
  3. Expressions
    1. Blocks
      1. Examples
      2. Syntax
    2. Literals
      1. String Literals
      2. Integer Literals
      3. Boolean Literals
      4. Null Literal
      5. Type Literals
    3. Infix Operators / Operator Overloading
      1. Short-Circuit Boolean Operators
      2. Examples
      3. Assignments
    4. Feature Calls
      1. Syntax
      2. Property Access
      3. Implicit 'this' variable
      4. Null-Safe Feature Call
    5. Constructor Call
      1. Examples
      2. Syntax
    6. If Expression
      1. Syntax
      2. Typing
      3. Examples
    7. For Loop
      1. Syntax
    8. While Loop
      1. Syntax
      2. Examples
    9. Do-While Loop
      1. Syntax
      2. Examples
    10. Variable Declarations
      1. Syntax
      2. Typing
    11. Closures
      1. Syntax
      2. Typing
      3. Function Mapping
      4. Examples
    12. Switch Expression
      1. Type guards
      2. Typing
      3. Examples
      4. Syntax
    13. Type Casts
      1. Syntax
      2. Examples
    14. Rich Strings
      1. Conditions in Rich Strings
      2. Loops in Rich Strings
      3. Typing
      4. White Space Handling
    15. Return Expression
    16. Throwing Exceptions
    17. Try, Catch, Finally