Package | Description |
---|---|
com.whitestein.lsps.lang.signature |
Modifier and Type | Method and Description |
---|---|
static FunctionSignature.Builder |
FunctionSignature.builder(String name)
Returns builder to build the function signature.
|
FunctionSignature.Builder |
FunctionSignature.Builder.constraint(FunctionConstraint constraint)
Sets the function constraint.
|
FunctionSignature.Builder |
FunctionSignature.Builder.freeType(FreeType... types)
Adds free types.
|
FunctionSignature.Builder |
FunctionSignature.Builder.freeType(String... types)
Adds free types.
|
FunctionSignature.Builder |
FunctionSignature.Builder.freeTypeBound(FreeType freeType,
Type type)
Adds a free type upper bound.
|
FunctionSignature.Builder |
FunctionSignature.Builder.metadata(Map<String,String> metadata)
Adds metadata
|
FunctionSignature.Builder |
FunctionSignature.Builder.modifiers(Collection<Modifier> modifiers)
Adds given modifiers.
|
FunctionSignature.Builder |
FunctionSignature.Builder.op(Operation operation)
Sets the operation.
|
FunctionSignature.Builder |
FunctionSignature.Builder.param(SignatureParameter... params)
Adds parameters.
|
FunctionSignature.Builder |
FunctionSignature.Builder.param(Type... types)
Adds parameters.
|
FunctionSignature.Builder |
FunctionSignature.Builder.param(Type type,
String name)
Adds named parameter.
|
FunctionSignature.Builder |
FunctionSignature.Builder.paramVariadic(Type type)
Adds variadic parameter.
|
FunctionSignature.Builder |
FunctionSignature.Builder.paramVariadic(Type type,
String name)
Adds named variadic parameter.
|
FunctionSignature.Builder |
FunctionSignature.Builder.returns(Type returnType)
Sets return type.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setAbstract(boolean isAbstract)
Sets the "abstract" flag.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setConstructor(boolean isConstructor)
Sets the constructor flag.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setDeprecated(boolean deprecated)
Sets deprecated modifier.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setExtensionMethod(boolean extension)
Sets the extension modifier.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setMethod(boolean isMethod)
Sets the method flag.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setSideEffect(boolean sideEffect)
Sets side-effect modifier.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setStatic(boolean isStatic)
Sets the static flag.
|
FunctionSignature.Builder |
FunctionSignature.Builder.setVisibility(Visibility visibility)
Sets private modifier.
|
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.