fluentast-core / at.hschroedl.fluentast.ast.expression / FluentTypeLiteral

FluentTypeLiteral

class FluentTypeLiteral : FluentExpression (source)

Used to build a TypeLiteral from a FluentType.

Java:

MyType.class

JDT:

TypeLiteral literal = ast.newTypeLiteral();
literal.setType(ast.newSimpleType(ast.newSimpleName("MyType")));

Fluentast:

TypeLiteral literal = clazz(t("MyType")).build(ast);

Functions

build fun build(ast: AST): TypeLiteral

Inherited Functions

build open fun build(): Expression
field fun field(fieldName: String): FluentFieldAccess
index fun index(expression: FluentExpression): FluentArrayAccess


Generated using Dokka.