public final class Builders extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static BinaryOperation |
anonCall(java.lang.Object receiver,
java.lang.Object invocation) |
static CollectionLiteral |
array(java.lang.Object... values) |
static CollectionComprehension |
arrayComprehension() |
static AssignmentStatement |
assign(java.lang.Object expression)
Creates a assignment of the given expression.
|
static AssignmentStatement |
assignment() |
static Augmentation |
augment(PackageAndClass target) |
static Augmentation |
augment(java.lang.String target) |
static NamedAugmentation |
augmentation(PackageAndClass name) |
static NamedAugmentation |
augmentation(java.lang.String name) |
static BinaryOperation |
binaryOperation(java.lang.Object type) |
static BinaryOperation |
binaryOperation(OperatorType type,
java.lang.Object left,
java.lang.Object right) |
static Block |
block() |
static Block |
block(java.lang.Object... statements) |
static ConditionalBranching |
branch() |
static ConditionalBranching |
branch(java.lang.Object condition,
Block trueBlock,
Block falseBlock,
ConditionalBranching elseBranch) |
static FunctionInvocation |
call(java.lang.String name) |
static CaseStatement |
cases() |
static ConstantStatement |
classRef(java.lang.Object cls) |
static CollectionLiteral |
collection(CollectionLiteral.Type type,
java.lang.Object... values) |
static CollectionLiteral |
collection(java.lang.String type,
java.lang.Object... values) |
static CollectionComprehension |
collectionComprehension(CollectionLiteral.Type type) |
static CollectionComprehension |
collectionComprehension(java.lang.String typeName) |
static ConstantStatement |
constant(java.lang.Object value) |
static Decorator |
decorator(java.lang.Object expr) |
static AssignmentStatement |
define(java.lang.Object reference)
Creates a declaring assignment to a given reference.
|
static DestructuringAssignment |
destruct() |
static ForEachLoopStatement |
foreach() |
static GoloFunction |
functionDeclaration() |
static GoloFunction |
functionDeclaration(java.lang.String name) |
static FunctionInvocation |
functionInvocation() |
static ConstantStatement |
functionRef(java.lang.Object funcName) |
static ConstantStatement |
functionRef(java.lang.Object moduleName,
java.lang.Object funcName) |
static ConstantStatement |
functionRef(java.lang.Object moduleName,
java.lang.Object funcName,
java.lang.Object arity) |
static ConstantStatement |
functionRef(java.lang.Object moduleName,
java.lang.Object funcName,
java.lang.Object arity,
java.lang.Object varargs) |
static MethodInvocation |
invoke(java.lang.String name) |
static ClosureReference |
lambda(java.lang.String... parameters) |
static CollectionLiteral |
list(java.lang.Object... values) |
static CollectionComprehension |
listComprehension() |
static LocalReference |
localRef(java.lang.Object name) |
static LoopStatement |
loop() |
static CollectionLiteral |
map(java.lang.Object... values) |
static CollectionComprehension |
mapComprehension() |
static MatchExpression |
match() |
static Member |
member(java.lang.String name) |
static GoloModule |
module(PackageAndClass name) |
static GoloModule |
module(java.lang.String name) |
static ModuleImport |
moduleImport(java.lang.Object name) |
static NamedArgument |
namedArgument(java.lang.String name) |
static UnaryOperation |
not(ExpressionStatement expression) |
static ThrowStatement |
raise(java.lang.Object expression) |
static CollectionLiteral |
range(java.lang.Object... values) |
static ReferenceLookup |
refLookup(java.lang.String name) |
static ReturnStatement |
returns(java.lang.Object expr) |
static CollectionLiteral |
set(java.lang.Object... values) |
static CollectionComprehension |
setComprehension() |
static Struct |
structure(java.lang.String name) |
static Block |
toBlock(java.lang.Object block) |
static GoloParser.ParserClassRef |
toClassRef(java.lang.Class<?> cls) |
static GoloParser.ParserClassRef |
toClassRef(java.lang.String clsName) |
static GoloStatement |
toGoloStatement(java.lang.Object statement) |
static TryCatchFinally |
tryCatch(java.lang.String exceptionId) |
static CollectionLiteral |
tuple(java.lang.Object... values) |
static CollectionComprehension |
tupleComprehension() |
static Union |
union(java.lang.String name) |
static CollectionLiteral |
vector(java.lang.Object... values) |
static CollectionComprehension |
vectorComprehension() |
static LoopStatement |
whileLoop(java.lang.Object condition) |
public static NamedArgument namedArgument(java.lang.String name)
public static MethodInvocation invoke(java.lang.String name)
public static Augmentation augment(java.lang.String target)
public static Augmentation augment(PackageAndClass target)
public static NamedAugmentation augmentation(java.lang.String name)
public static NamedAugmentation augmentation(PackageAndClass name)
public static LoopStatement loop()
public static LoopStatement whileLoop(java.lang.Object condition)
public static ForEachLoopStatement foreach()
public static CaseStatement cases()
public static MatchExpression match()
public static AssignmentStatement assignment()
public static AssignmentStatement assign(java.lang.Object expression)
public static AssignmentStatement define(java.lang.Object reference)
public static DestructuringAssignment destruct()
public static UnaryOperation not(ExpressionStatement expression)
public static BinaryOperation binaryOperation(OperatorType type, java.lang.Object left, java.lang.Object right)
public static BinaryOperation binaryOperation(java.lang.Object type)
public static GoloFunction functionDeclaration()
public static GoloFunction functionDeclaration(java.lang.String name)
public static ClosureReference lambda(java.lang.String... parameters)
public static FunctionInvocation functionInvocation()
public static FunctionInvocation call(java.lang.String name)
public static BinaryOperation anonCall(java.lang.Object receiver, java.lang.Object invocation)
public static ReferenceLookup refLookup(java.lang.String name)
public static ConstantStatement constant(java.lang.Object value)
public static ConstantStatement classRef(java.lang.Object cls)
public static ConstantStatement functionRef(java.lang.Object funcName)
public static ConstantStatement functionRef(java.lang.Object moduleName, java.lang.Object funcName)
public static ConstantStatement functionRef(java.lang.Object moduleName, java.lang.Object funcName, java.lang.Object arity)
public static ConstantStatement functionRef(java.lang.Object moduleName, java.lang.Object funcName, java.lang.Object arity, java.lang.Object varargs)
public static ReturnStatement returns(java.lang.Object expr)
public static ThrowStatement raise(java.lang.Object expression)
public static LocalReference localRef(java.lang.Object name)
public static GoloParser.ParserClassRef toClassRef(java.lang.Class<?> cls)
public static GoloParser.ParserClassRef toClassRef(java.lang.String clsName)
public static CollectionLiteral collection(java.lang.String type, java.lang.Object... values)
public static CollectionLiteral collection(CollectionLiteral.Type type, java.lang.Object... values)
public static CollectionLiteral list(java.lang.Object... values)
public static CollectionLiteral array(java.lang.Object... values)
public static CollectionLiteral set(java.lang.Object... values)
public static CollectionLiteral map(java.lang.Object... values)
public static CollectionLiteral tuple(java.lang.Object... values)
public static CollectionLiteral vector(java.lang.Object... values)
public static CollectionLiteral range(java.lang.Object... values)
public static CollectionComprehension collectionComprehension(CollectionLiteral.Type type)
public static CollectionComprehension collectionComprehension(java.lang.String typeName)
public static CollectionComprehension arrayComprehension()
public static CollectionComprehension listComprehension()
public static CollectionComprehension setComprehension()
public static CollectionComprehension mapComprehension()
public static CollectionComprehension tupleComprehension()
public static CollectionComprehension vectorComprehension()
public static TryCatchFinally tryCatch(java.lang.String exceptionId)
public static GoloStatement toGoloStatement(java.lang.Object statement)
public static GoloModule module(PackageAndClass name)
public static GoloModule module(java.lang.String name)
public static ModuleImport moduleImport(java.lang.Object name)
public static ConditionalBranching branch()
public static ConditionalBranching branch(java.lang.Object condition, Block trueBlock, Block falseBlock, ConditionalBranching elseBranch)