Xtend User Guide
- Getting Started
- Introduction
- Hello World
- The Movies Example
- The Data
- Parsing The Data
- Answering Some Questions
- Question 1 : What Is The Number Of Action Movies?
- Question 2 : What Is The Year The Best Movie From The 80's Was Released?
- Question 3 : What Is The The Sum Of All Votes Of The Top Two Movies?
- Reference Documentation
- Java Interoperability
- Type Inference
- Conversion Rules
- Interoperability with Java
- Classes and Members
- Package Declaration
- Imports
- Class Declaration
- Constructors
- Fields
- Methods
- Abstract Methods
- Overriding Methods
- Declared Exceptions
- Inferred Return Types
- Generic Methods
- Dispatch Methods
- Dispatch Methods and Inheritance
- Static Dispatch Methods
- Annotations
- Extension Methods
- Extensions from the Library
- Local Extension Methods
- Extension Imports
- Extension Provider
- Interface Declaration
- Annotation Type Declaration
- Enum Type Declaration
- Expressions
- Literals
- String Literals
- Character Literals
- Number Literals
- Boolean Literals
- Null Literal
- Type Literals
- Collection Literals
- Arrays
- Type Casts
- Infix Operators and Operator Overloading
- Short-Circuit Boolean Operators
- Defined Operators in The Library
- Equality Operators
- Comparison Operators
- Arithmetic Operators
- Elvis Operator
- With Operator
- Range Operators
- Pair Operator
- Assignments
- Setting Properties
- Blocks
- Variable Declarations
- Typing
- Field Access and Method Invocation
- Property Access
- Implicit Variables this and it
- Static Access
- Null-Safe Feature Call
- Constructor Call
- Lambda Expressions
- Typing
- If Expression
- Switch Expression
- Type guards
- For Loop
- While Loop
- Do-While Loop
- Return Expression
- Throwing Exceptions
- Try, Catch, Finally
- Template Expressions
- Conditions in Templates
- Loops in Templates
- Typing
- White Space Handling
- Active Annotations
- Annotation Processor
- Phase 1: Register Globals
- Phase 2: Transformation
- Phase 3: Code Generation
- On Expressions and Statements
- Generating Blackbox Java Code
- Assigning Expressions
- Custom Compiler Checks
- Class Path Setup and Testing
- Testing
- Wrap Up
- Existing Active Annotations
- @Property
- @Data