Modifier and Type | Method and Description |
---|---|
Type |
ModelProviderImpl.resolveType(long moduleId,
java.lang.String qualifiedName) |
Type |
ModelProvider.resolveType(long modelId,
java.lang.String qualifiedName)
Resolves type by its qualified name in given model.
|
Type |
ModelCache.resolveType(java.lang.String type,
ExecutionContext ctx)
Parses given type string representation using resolver for current process.
|
Type |
ModelCache.resolveType(java.lang.String type,
long modelId,
ModelProviderClientService modelProviderService)
Parses given type string representation using resolver for current process.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
RuntimeToJavaConverter.convertToJava(boolean isForCustomUi,
Type type,
JavaMapping javaMapping,
java.lang.Object object)
Converts the given object to a java object for the given type.
|
static java.lang.Object |
RuntimeToJavaConverter.convertToJava(Type type,
JavaMapping javaMapping,
java.lang.Object object)
Converts the given object to a java object for the given type.
|
java.lang.Object |
RuntimeToJavaConverter.convertToRuntime(Type type,
java.lang.Object object)
Converts from a java objects to runtime object.
|
Modifier and Type | Method and Description |
---|---|
Type |
Variable.getType()
Returns the type.
|
Type |
Context.getVariableType(java.lang.String name)
Returns the variable type for given variable name or null if the variable
does not exist.
|
Constructor and Description |
---|
Variable(java.lang.String name,
ObjectValue value,
Type type,
long contextId)
Creates new instance.
|
Variable(java.lang.String name,
ObjectValue value,
Type type,
long contextId,
boolean internal)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Type |
SetValueSetAdapter.getItemType() |
Type |
ListValueListAdapter.getItemType() |
Type |
TypeValue.toObject() |
Constructor and Description |
---|
TypeValue(Type type)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Type |
RecordNamespace.getFreeType(FreeType type) |
Type |
AbstractContextNamespace.getFreeType(FreeType type) |
Type |
HolderImpl.getType() |
Type |
RecordNamespace.getVariableType(java.lang.String name) |
Type |
NoBaseContextNamespace.getVariableType(java.lang.String name) |
Type |
ContextNamespace.getVariableType(java.lang.String name) |
Type |
AbstractContextNamespace.resolveType(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
RecordNamespace.addNewVariable(java.lang.String name,
Type type,
boolean isDefinedInExpression,
boolean readOnly) |
void |
NoBaseContextNamespace.addNewVariable(java.lang.String name,
Type type,
boolean isExpressionLocal,
boolean isReadOnly) |
void |
ContextNamespace.addNewVariable(java.lang.String name,
Type type,
boolean isExpressionLocal,
boolean readOnly) |
java.lang.Object |
ToReadOnlyRecordConverter.convertRuntimeObjectToReadOnlyRecords(java.lang.Object object,
Type type)
Converts replace record holder to read only record holders.
|
Value |
RuntimeToPersistentConverter.convertToPersistent(java.lang.Object value,
Type type)
This method takes runtime object and converts it to its underlying persistent representation.
|
RecordHolder |
RecordProxySet.createProxy(ExecutionContext ctx,
RecordProxySetHolder proxySet,
Type type)
Creates new change proxy of the record type.
|
RecordHolder |
RecordProxySet.createProxy(ExecutionContext ctx,
Type type)
Creates new change proxy of the record type.
|
java.lang.Object |
EvaluationLevelConverter.runtimeObjectInLevel(java.lang.String level,
java.lang.Object runtimeObject,
Type type)
Returns a runtime object for a specified level.
|
protected void |
AbstractContextNamespace.setVariableValueInternal(java.lang.String name,
Type type,
java.lang.Object value) |
void |
RuntimeToPersistentConverter.validate(java.lang.Object value,
Type type)
Throws
IllegalArgumentException if value is not assignable to type . |
Modifier and Type | Method and Description |
---|---|
Namespace |
RecordNamespace.createChildNamespace(java.lang.String name,
java.util.List<? extends Field> fields,
java.util.List<?> initialValues,
java.util.Map<FreeType,Type> freeTypeMapping,
InterpreterConfiguration configuration) |
Namespace |
NoBaseContextNamespace.createChildNamespace(java.lang.String name,
java.util.List<? extends Field> fields,
java.util.List<?> initialValues,
java.util.Map<FreeType,Type> freeTypeMapping,
InterpreterConfiguration configuration) |
Namespace |
ContextNamespace.createChildNamespace(java.lang.String name,
java.util.List<? extends Field> fields,
java.util.List<?> values,
java.util.Map<FreeType,Type> freeTypeMapping,
InterpreterConfiguration configuration) |
protected Namespace |
AbstractContextNamespace.createChildNamespaceInternal(java.lang.String name,
java.util.List<? extends Field> fields,
java.util.List<?> values,
java.util.Map<FreeType,Type> freeTypeMapping,
InterpreterConfiguration configuration)
Creates child namespace in required evaluation level.
|
Modifier and Type | Method and Description |
---|---|
Type |
CommonCompiler.JavaTypesResolver.getBoundType(Type type) |
static Type |
CommonCompiler.getBoundType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
Type |
LocalParameter.getType() |
protected static Type |
CompiledNamespace.getType(CompiledNamespace compiledNamespace,
java.lang.String typeString) |
protected static Type |
CompiledNamespace.getType(Namespace namespace,
java.lang.String typeString) |
protected Type |
CompiledNamespace.getType(java.lang.String typeString) |
Modifier and Type | Method and Description |
---|---|
protected static void |
CompiledNamespace.addVariable(Namespace namespace,
java.lang.String name,
Type type) |
protected static void |
CompiledNamespace.addVariable(Namespace namespace,
java.lang.String name,
Type type,
java.lang.Object value) |
static SrcExpression |
ExpressionCompiler.compile(CommonCompiler commonCompiler,
javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
Expression exp,
ExpressionOrigin expressionOrigin,
java.util.Map<java.lang.String,Type> params,
java.util.Set<java.lang.String> requiredParameters,
Type returnType,
CommonCompiler.JavaTypesResolver javaTypeResolver,
boolean isInRecord,
boolean isInForm,
boolean isInExpression,
boolean isStatic)
Compiles expression to java code.
|
static SrcExpression |
ExpressionCompiler.compileClosure(CommonCompiler namespaceCompiler,
javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
Expression exp,
ExpressionOrigin expressionOrigin,
java.util.Map<java.lang.String,Type> params,
java.util.Set<java.lang.String> requiredParameters,
Type returnType,
CommonCompiler.JavaTypesResolver javaTypeResolver,
boolean isInRecord,
boolean isInForm,
boolean isStatic)
Compiles closure to java code.
|
static SrcExpression |
ExpressionCompiler.compileExpression(CommonCompiler commonCompiler,
javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
Expression exp,
ExpressionOrigin expressionOrigin,
java.util.List<LocalParameter> params,
SrcExpression ctxExp,
Type returnType,
CommonCompiler.JavaTypesResolver javaTypeResolver,
boolean isInRecord,
boolean isInForm,
boolean isStatic,
boolean canReturn)
Compiles expression.
|
protected SrcMethod |
CommonCompiler.createPrivateMethod(javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
boolean isInRecord,
boolean isInForm,
Type returnType,
java.lang.String methodName,
Expression exp,
ExpressionOrigin expressionOrigin,
java.util.List<LocalParameter> params,
CommonCompiler.JavaTypesResolver javaTypeResolver,
SrcExpression namespaceExp) |
java.lang.Class<?> |
CommonCompiler.JavaTypesResolver.getArrayClassForType(Type type) |
static java.lang.Class<?> |
CommonCompiler.getArrayClassForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
java.lang.String |
CommonCompiler.JavaTypesResolver.getArrayClassNameForType(Type type) |
static java.lang.String |
CommonCompiler.getArrayClassNameForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
Type |
CommonCompiler.JavaTypesResolver.getBoundType(Type type) |
static Type |
CommonCompiler.getBoundType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
java.lang.Class<?> |
CommonCompiler.JavaTypesResolver.getClassForType(Type type) |
static java.lang.Class<?> |
CommonCompiler.getClassForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
java.lang.String |
CommonCompiler.JavaTypesResolver.getClassNameForType(Type type) |
static java.lang.String |
CommonCompiler.getClassNameForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
java.lang.String |
CommonCompiler.JavaTypesResolver.getSimpleClassNameForType(Type type) |
static java.lang.String |
CommonCompiler.getSimpleClassNameForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
Modifier and Type | Method and Description |
---|---|
static SrcExpression |
ExpressionCompiler.compile(CommonCompiler commonCompiler,
javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
Expression exp,
ExpressionOrigin expressionOrigin,
java.util.Map<java.lang.String,Type> params,
java.util.Set<java.lang.String> requiredParameters,
Type returnType,
CommonCompiler.JavaTypesResolver javaTypeResolver,
boolean isInRecord,
boolean isInForm,
boolean isInExpression,
boolean isStatic)
Compiles expression to java code.
|
static SrcExpression |
ExpressionCompiler.compileClosure(CommonCompiler namespaceCompiler,
javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
Expression exp,
ExpressionOrigin expressionOrigin,
java.util.Map<java.lang.String,Type> params,
java.util.Set<java.lang.String> requiredParameters,
Type returnType,
CommonCompiler.JavaTypesResolver javaTypeResolver,
boolean isInRecord,
boolean isInForm,
boolean isStatic)
Compiles closure to java code.
|
static java.lang.Class<?> |
CommonCompiler.getArrayClassForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
static java.lang.String |
CommonCompiler.getArrayClassNameForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
static Type |
CommonCompiler.getBoundType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
static java.lang.Class<?> |
CommonCompiler.getClassForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
static java.lang.String |
CommonCompiler.getClassNameForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
static java.lang.String |
CommonCompiler.getSimpleClassNameForType(Type type,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames) |
Constructor and Description |
---|
LocalParameter(java.lang.String name,
Type type,
SrcExpression value) |
Constructor and Description |
---|
JavaTypesResolver(CommonCompiler.JavaTypesResolver resolver,
java.util.Map<FreeType,Type> freeTypeBounds) |
JavaTypesResolver(java.util.Map<com.whitestein.lsps.model.ProcessModel,java.lang.String> hashMappings,
java.util.Map<FreeType,Type> freeTypeBounds,
java.util.Map<ClassType,java.lang.String> recordClassNames,
java.util.Map<FunctionSignature,java.lang.String> formClassNames) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
RuntimeToHibernateConverter.convertToHibernate(java.util.function.Supplier<org.hibernate.Session> session,
java.lang.String databaseJndi,
Type type,
java.lang.Object object)
Converts the given object to a Hibernate object for the given type.
|
static java.lang.Object |
SimpleValueHibernateToRuntimeConverter.convertToHibernate(Type type,
java.lang.Object object)
Converts runtime object to hibernate.
|
java.lang.Object |
RuntimeToHibernateConverter.convertToRuntime(SharedRecordEntityAdapter adapter,
java.lang.String propertyName,
Type type,
java.lang.Object object,
java.lang.Long auditRevisionId)
Converts from a hibernate to runtime object.
|
java.lang.Object |
SimpleValueHibernateToRuntimeConverter.convertToRuntime(Type type,
java.lang.Object object)
Converts hibernate object to runtime object.
|
Modifier and Type | Method and Description |
---|---|
protected Type |
Variable.compileType(Context context,
ModelProvider modelProvider) |
Type |
WritableVariable.getCachedCompiledType() |
abstract Type |
Variable.getCachedCompiledType()
Returns the cached compiled type, if it is stored.
|
Type |
ReadonlyVariable.getCachedCompiledType() |
Type |
WritableVariable.getCompiledType(Context context,
ModelProvider modelProvider)
Returns the compiled type.
|
abstract Type |
Variable.getCompiledType(Context context,
ModelProvider modelProvider)
Returns the compiled type.
|
Type |
ReadonlyVariable.getCompiledType(Context context,
ModelProvider modelProvider) |
Type |
ContextFreeType.getCompiledType(ModelInstance modelInstance,
ModelProvider modelProvider)
Returns the compiled type.
|
Type |
ValueRef.getCompiledType(ModelProvider modelProvider) |
Type |
Value.getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
Type |
StringValue.getCompiledType(ModelProvider modelProvider) |
Type |
RecordProxySetValue.getCompiledType(ModelProvider modelProvider) |
Type |
ReadOnlyRecordValue.getCompiledType(ModelProvider modelProvider) |
Type |
RangeValue.getCompiledType(ModelProvider modelProvider) |
Type |
PropertyValue.getCompiledType(ModelProvider modelProvider) |
Type |
PropertyPathValue.getCompiledType(ModelProvider modelProvider) |
Type |
ObjectValue.getCompiledType(ModelProvider modelProvider) |
Type |
NullValue.getCompiledType(ModelProvider modelProvider) |
Type |
LocalDateValue.getCompiledType(ModelProvider modelProvider) |
Type |
LocalDateTimeValue.getCompiledType(ModelProvider modelProvider) |
Type |
DecimalValue.getCompiledType(ModelProvider modelProvider) |
Type |
DateValue.getCompiledType(ModelProvider modelProvider) |
Type |
ComplexValue.getCompiledType(ModelProvider modelProvider) |
Type |
BooleanValue.getCompiledType(ModelProvider modelProvider) |
Type |
BinaryValue.getCompiledType(ModelProvider modelProvider) |
Type |
Context.getCompiledType(ModelProvider modelProvider,
java.lang.String typeName)
Returns the compiled type.
|
Type |
TypeValue.getCompiledValue(ModelProvider modelProvider)
Returns the compiled type value.
|
Modifier and Type | Method and Description |
---|---|
Variable |
Context.addNewVariable(java.lang.String name,
java.lang.String type,
Type compiledType,
Value value,
boolean isReadOnly)
Adds a new variable.
|
Variable |
Context.addNewVariable(java.lang.String name,
Type type)
Adds a new variable.
|
Variable |
Context.addNewVariable(java.lang.String name,
Type type,
Value value,
boolean isReadOnly)
Adds a new variable.
|
Variable |
Context.createVariable(java.lang.String name,
java.lang.String type,
Type compiledType,
Value value,
boolean isReadOnly)
Creates a variable but does not add it to the context yet.
|
Modifier and Type | Method and Description |
---|---|
Context |
Context.addNewChildContext(java.lang.String name,
java.util.Map<FreeType,Type> freeTypeMapping)
Adds new child context.
|
Constructor and Description |
---|
ContextFreeType(java.lang.String name,
Type type)
Creates a new free type.
|
TypeValue(ModelInstance modelInstance,
java.lang.String type,
Type compiledType)
Creates new instance of
TypeValue . |
Modifier and Type | Method and Description |
---|---|
ListHolder |
TestFunctionsImpl.dynamicAuditQuery(ExecutionContext ctx,
Type recordType,
java.lang.String iterator,
java.lang.String where,
ListHolder ordering,
Decimal index,
Decimal count,
Decimal revision,
ListHolder auditCriteria) |
ListHolder |
TestFunctions.dynamicAuditQuery(ExecutionContext ctx,
Type recordType,
java.lang.String iterator,
java.lang.String where,
ListHolder ordering,
Decimal index,
Decimal count,
Decimal revision,
ListHolder auditCriteria) |
Decimal |
TestFunctionsImpl.dynamicCountQuery(ExecutionContext ctx,
Type recordType,
java.lang.String iterator,
java.lang.String where) |
Decimal |
TestFunctions.dynamicCountQuery(ExecutionContext ctx,
Type recordType,
java.lang.String iterator,
java.lang.String where) |
ListHolder |
TestFunctionsImpl.dynamicQuery(ExecutionContext ctx,
Type recordType,
java.lang.String iterator,
java.lang.String where,
ListHolder ordering,
Decimal index,
Decimal count) |
ListHolder |
TestFunctions.dynamicQuery(ExecutionContext ctx,
Type recordType,
java.lang.String iterator,
java.lang.String where,
ListHolder ordering,
Decimal index,
Decimal count) |
SetHolder |
TestFunctionsImpl.findAllInSession(ExecutionContext ctx,
Type type) |
SetHolder |
TestFunctions.findAllInSession(ExecutionContext ctx,
Type type)
Returns set of all loaded records of the given type.
|
MapHolder |
TestFunctionsImpl.getTypeMetadata(ExecutionContext ctx,
Type type) |
MapHolder |
TestFunctions.getTypeMetadata(ExecutionContext ctx,
Type type) |
java.lang.String |
TestFunctionsImpl.validationExceptionString(ExecutionContext ctx,
Type type) |
java.lang.String |
TestFunctions.validationExceptionString(ExecutionContext ctx,
Type type)
Returns type validation exception string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
LspsReflectionManager.equals(org.hibernate.annotations.common.reflection.XClass class1,
Type type) |
RecordHolder |
EnversFunctionsImpl.getCurrentRevision(ExecutionContext ctx,
Type revisionEntityType,
java.lang.Boolean persist) |
RecordHolder |
EnversFunctions.getCurrentRevision(ExecutionContext ctx,
Type revisionEntityType,
java.lang.Boolean persist)
Returns current revision data.
|
Modifier and Type | Method and Description |
---|---|
Decimal |
DynamicQueriesBean.sharedRecordCount(ExecutionContext ctx,
Type type,
java.lang.String iterator,
java.lang.String whereExpr) |
ListHolder |
DynamicQueriesBean.sharedRecordList(ExecutionContext ctx,
Type type,
Decimal startIndex,
Decimal count,
java.lang.String iterator,
java.lang.String whereExpr,
java.util.List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
HintModule.findHintOption(java.lang.String hintName,
java.lang.String option,
Type componentType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JsonFunctions.parseJson(ExecutionContext context,
java.lang.String json,
Type resultType)
Parses the given JSON document into the instance of the given
type |
java.lang.Object |
JsonFunctionsBean.parseJson(ExecutionContext context,
java.lang.String json,
Type resultType)
Deprecated.
|
java.lang.Object |
JsonFunctions.parseJson(ExecutionContext context,
java.lang.String json,
Type resultType,
java.lang.Boolean doInsert,
java.lang.Boolean doUpdate)
Parses JSON string to internal data structures.
|
java.lang.Object |
JsonFunctionsBean.parseJson(ExecutionContext context,
java.lang.String json,
Type resultType,
java.lang.Boolean doInsert,
java.lang.Boolean doUpdate) |
java.lang.String |
JsonFunctions.toJsonSchema(ExecutionContext context,
java.lang.Boolean useExternalRef,
Type type) |
java.lang.String |
JsonFunctionsBean.toJsonSchema(ExecutionContext context,
java.lang.Boolean useExternalRef,
Type type) |
Modifier and Type | Method and Description |
---|---|
Type |
JsonProcessingUnsupportedTypeException.getUnsupportedType()
Gets the detected unsupported type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ValueConverterProvider.isSupported(Type type)
Indicates if a type is supported by this provider.
|
boolean |
RecordValueConverterProvider.isSupported(Type type)
Indicates if a type is supported by this provider.
|
boolean |
GenericConversionValueConverterProvider.isSupported(Type type) |
java.lang.Object |
JsonParser.parse(java.lang.String json,
Type resultType,
ExecutionContext ctx)
Parses the JSON string and produces LSPS objects out of it.
|
java.lang.Object |
JsonParser.parse(java.lang.String json,
Type resultType,
ExecutionContext ctx,
boolean doInsert,
boolean doUpdate) |
com.fasterxml.jackson.module.jsonSchema.JsonSchema |
TypeToSchemaConverter.toSchema(Type type,
com.whitestein.lsps.json.impl.WriteContext context,
boolean useExternalRef) |
com.fasterxml.jackson.module.jsonSchema.JsonSchema |
ObjectValueConverter.toSchema(Type type,
com.whitestein.lsps.json.impl.WriteContext context,
boolean useExternalRef) |
java.lang.String |
JsonSchemaWriter.writeJsonSchema(Type type)
Creates a JSON representation of the LSPS object.
|
Constructor and Description |
---|
JsonProcessingUnsupportedTypeException(Type unsupportedType)
Creates a new instance of this exception with the detected unsupported
type.
|
Modifier and Type | Method and Description |
---|---|
Type |
MockNamespacePart.getFreeType(FreeType type) |
Type |
MockNamespace.getFreeType(FreeType type) |
Type |
AbstractMockNamespace.getVariableType(java.lang.String name) |
Type |
MockNamespacePart.resolveType(java.lang.String type) |
Type |
MockNamespace.resolveType(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractMockNamespace.addNewVariable(java.lang.String name,
Type type,
boolean isExpressionLocal,
boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
Namespace |
AbstractMockNamespace.createChildNamespace(java.lang.String name,
java.util.List<? extends Field> fields,
java.util.List<?> initialValues,
java.util.Map<FreeType,Type> freeTypeMapping,
InterpreterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
Type |
TypeParameterAst.getBound() |
Type |
InstanceofExpression.getInstanceofType()
Returns the target (tested) type.
|
Type |
ForeachExpression.getIteratorType()
Returns the iterator type.
|
Type |
SignatureAst.getReturnType() |
Type |
FunctionAst.getReturnType() |
Type |
ValidationTargetAst.getTargetType() |
Type |
TypeAst.getType() |
Type |
FunctionParameterAst.getType() |
Type |
Expression.getType()
Returns the return type.
|
Type |
AstType.getType() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Type> |
TypeParametersAst.getMap() |
java.util.Map<java.lang.String,Type> |
FunctionAst.getTypeParameters() |
Constructor and Description |
---|
AstType(ASTNode node,
Type type,
java.util.List<AstType> children) |
CastExpression(ASTInfo info,
Expression expression,
Type type) |
ChainedExpression(ASTInfo info,
java.util.List<Expression> expressions,
Type returnType) |
ClosureInvocationExpression(ASTInfo info,
Type returnType,
Expression closureExpression,
java.util.List<Expression> arguments)
Creates new instance of
ClosureInvocationExpression . |
CompoundAssignmentExpression(ASTInfo info,
Type returnType,
Expression leftExpression,
Expression rightExpression,
FunctionSignature signature) |
ConditionalExpression(ASTInfo info,
Expression ifExpression,
Expression thenExpression,
Expression elseExpression,
Type returnType)
Constructs a new conditional expression.
|
ConditionalExpression(ASTInfo info,
java.util.List<Expression> ifExpressions,
java.util.List<Expression> thenExpressions,
Expression elseExpression,
Type returnType)
Constructs a new conditional expression.
|
ConstantExpression(ASTInfo info,
java.lang.Object constant,
Type type)
Creates new instance of
ConstantExpression . |
DefExpression(ASTInfo info,
Type type,
java.lang.String identifier,
boolean isFinal) |
DereferenceExpression(ASTInfo info,
Type returnType,
Expression expression) |
ForeachExpression(ASTInfo info,
Type iteratorType,
java.lang.String iterator,
Expression collection,
Expression body) |
FunctionCallExpression(ASTInfo info,
Type returnType,
FunctionExpression functionExpression,
java.util.List<Expression> arguments)
Creates new instance of
FunctionCallExpression . |
FunctionCallWithNamedArgs(ASTInfo info,
Type returnType,
FunctionExpression function,
java.util.Map<java.lang.String,Expression> argMap)
Creates new instance of
FunctionCallWithNamedArgs . |
IfnullExpression(ASTInfo info,
Expression expression,
Expression altExpression,
Type returnType)
Constructs a new ifnull expression.
|
InstanceofExpression(ASTInfo info,
Expression expression,
Type type) |
MethodCallExpression(ASTInfo info,
Type returnType,
MethodExpression methodExpression,
java.util.List<Expression> arguments)
Creates new instance of
MethodCallExpression . |
MissingReturnExpression(ASTInfo info,
Type returnType,
Expression parent) |
PropertyExpression(ASTInfo info,
Expression recordExpression,
RecordType recordType,
java.lang.String property,
Type propertyType,
boolean safe)
Creates new instance of
PropertyExpression . |
ThisExpression(ASTInfo info,
Type returnType)
Creates new instance.
|
TypeAst(ASTNode node,
Type type) |
TypeExpression(ASTInfo info,
Type type,
int typeStartIndex,
int typeEndIndex) |
UnknownExpression(ASTInfo info,
Type guessType,
java.util.Collection<Expression> expressions) |
UnknownExpression(ASTInfo info,
Type guessType,
Expression... expressions) |
Modifier and Type | Class and Description |
---|---|
class |
MockValueHolder<T extends Type>
Common supertype for test value holders.
|
Modifier and Type | Method and Description |
---|---|
Type |
Namespace.getFreeType(FreeType type)
Returns the value of given free type or null if it does not exist in this context.
|
default Type |
Namespace.getFreeTypeMapping(FreeType freeType) |
Type |
RangeHolder.getItemType() |
Type |
MockSetHolder.getItemType() |
Type |
MockListHolder.getItemType() |
Type |
CollectionHolder.getItemType()
Returns the type of the items stored in this collection.
|
Type |
Property.getPropertyType()
Returns the property type.
|
Type |
ValueHolder.getType()
Returns the type of the holder.
|
Type |
PropertyPath.getType()
Returns the path type, i.e.
|
Type |
Namespace.getVariableType(java.lang.String name)
Returns the type of variable or null if it does not exist.
|
Type |
MockRecordNamespace.getVariableType(java.lang.String name) |
Type |
Namespace.resolveType(java.lang.String type)
Resolves type.
|
Modifier and Type | Method and Description |
---|---|
default void |
Namespace.addNewVariable(java.lang.String name,
Type type,
boolean isDefinedInExpression)
Adds a new variable.
|
void |
MockRecordNamespace.addNewVariable(java.lang.String name,
Type type,
boolean isDefinedInExpression) |
void |
Namespace.addNewVariable(java.lang.String name,
Type type,
boolean isDefinedInExpression,
boolean readOnly)
Adds a new variable.
|
Modifier and Type | Method and Description |
---|---|
Namespace |
Namespace.createChildNamespace(java.lang.String name,
java.util.List<? extends Field> fields,
java.util.List<?> initialValues,
java.util.Map<FreeType,Type> freeTypeMapping,
InterpreterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
Type |
ConstraintTypeInfo.getAppliedTo() |
Type |
VariableInfo.getType()
Returns the type of variable.
|
Type |
ConstantInfo.getType() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Type> |
ConstraintTypeInfo.getGenericBounds() |
java.util.Map<java.lang.String,Type> |
ConstraintTypeInfo.getParameters() |
Modifier and Type | Method and Description |
---|---|
void |
NamespaceModel.addVariable(java.lang.String name,
Type type)
Registers a public variable in this namespace.
|
void |
AbstractNamespace.addVariable(java.lang.String variableName,
Type variableType) |
void |
NamespaceModel.addVariable(java.lang.String name,
Type type,
boolean isPrivate)
Registers a variable in this namespace.
|
void |
AbstractNamespace.addVariable(java.lang.String variableName,
Type variableType,
boolean isPrivate) |
void |
NamespaceModel.addVariable(java.lang.String name,
Type type,
boolean isPrivate,
boolean isReadOnly)
Registers a variable in this namespace.
|
void |
AbstractNamespace.addVariable(java.lang.String variableName,
Type variableType,
boolean isPrivate,
boolean isReadOnly) |
java.util.Collection<SignatureMapping> |
NamespaceModel.getExtensionMethods(Type type)
Returns a collection of extension methods for a given type.
|
java.util.Collection<SignatureMapping> |
AbstractNamespace.getExtensionMethods(Type type) |
java.util.Collection<SignatureMapping> |
NamespaceModel.getExtensionMethods(Type type,
java.lang.String methodName)
Returns a collection of extension methods for a given type and name.
|
java.util.Collection<SignatureMapping> |
AbstractNamespace.getExtensionMethods(Type type,
java.lang.String methodName) |
java.util.Collection<SignatureMapping> |
NamespaceModel.getSignatures(java.lang.String namePattern,
java.util.List<? extends Type> args,
Type returnType,
java.util.Map<java.lang.String,java.lang.String> metadataPattern)
Returns a collection of function signatures for the given parameters.
|
java.util.Collection<SignatureMapping> |
AbstractNamespace.getSignatures(java.lang.String namePattern,
java.util.List<? extends Type> args,
Type returnType,
java.util.Map<java.lang.String,java.lang.String> metadataPattern) |
java.util.Collection<SignatureMapping> |
NamespaceModel.getSignaturesForNamedArgs(QID name,
java.util.Map<java.lang.String,Type> args,
Type returnType)
Returns a collection of function signatures for the given name, arguments
names and types and a return type.
|
java.util.Collection<SignatureMapping> |
AbstractNamespace.getSignaturesForNamedArgs(QID name,
java.util.Map<java.lang.String,Type> args,
Type returnType) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<SignatureMapping> |
NamespaceModel.getSignatures(java.lang.String namePattern,
java.util.List<? extends Type> args,
Type returnType,
java.util.Map<java.lang.String,java.lang.String> metadataPattern)
Returns a collection of function signatures for the given parameters.
|
java.util.Collection<SignatureMapping> |
AbstractNamespace.getSignatures(java.lang.String namePattern,
java.util.List<? extends Type> args,
Type returnType,
java.util.Map<java.lang.String,java.lang.String> metadataPattern) |
java.util.Collection<SignatureMapping> |
NamespaceModel.getSignaturesForNamedArgs(QID name,
java.util.Map<java.lang.String,Type> args,
Type returnType)
Returns a collection of function signatures for the given name, arguments
names and types and a return type.
|
java.util.Collection<SignatureMapping> |
AbstractNamespace.getSignaturesForNamedArgs(QID name,
java.util.Map<java.lang.String,Type> args,
Type returnType) |
Constructor and Description |
---|
ConstantInfo(java.lang.String name,
Type type,
boolean isPrivate) |
ConstantInfo(java.lang.String name,
Type type,
boolean isPrivate,
boolean isLiteral,
java.lang.Object literalValue) |
ConstantInfo(java.lang.String name,
Type type,
boolean isPrivate,
boolean isLiteral,
java.lang.Object literalValue,
java.util.Map<java.lang.String,java.lang.String> metadata) |
ConstraintTypeInfo(java.lang.String moduleName,
java.lang.String name,
Type appliedTo,
java.util.Map<java.lang.String,Type> parameters,
java.util.Map<java.lang.String,Type> genericBounds) |
VariableInfo(NamespaceModel namespaceModel,
java.lang.String name,
Type type)
Creates a new public variable information.
|
VariableInfo(NamespaceModel namespaceModel,
java.lang.String name,
Type type,
boolean isPrivate,
boolean isReadOnly)
Creates a new variable information.
|
VariableInfo(NamespaceModel namespaceModel,
java.lang.String name,
Type type,
boolean isPrivate,
boolean isReadOnly,
java.util.Map<java.lang.String,java.lang.String> metadata)
Creates a new variable information.
|
Constructor and Description |
---|
ConstraintTypeInfo(java.lang.String moduleName,
java.lang.String name,
Type appliedTo,
java.util.Map<java.lang.String,Type> parameters,
java.util.Map<java.lang.String,Type> genericBounds) |
ConstraintTypeInfo(java.lang.String moduleName,
java.lang.String name,
Type appliedTo,
java.util.Map<java.lang.String,Type> parameters,
java.util.Map<java.lang.String,Type> genericBounds) |
Modifier and Type | Method and Description |
---|---|
static Type |
ParserUtil.findCommonExpressionSupertype(java.util.Collection<? extends Expression> expressions)
Returns the most specific common supertype of given expressions.
|
protected Type |
TypeParser.findNamedType(QID qid)
Finds a type by a given name.
|
Type |
ParsedExpression.getType() |
Type |
TypeParser.parseType(AntlrType antlrType)
Parses a type from an AntlrType object.
|
Type |
TypeParser.parseType(java.lang.String string)
Parses a type from a string.
|
Type |
TypeParser.parseType(org.antlr.runtime.tree.Tree tree)
Parses a type from an ANTLR tree.
|
protected Type |
Parser.parseType(org.antlr.runtime.tree.Tree tree) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Type> |
TypeParser.parseTypeList(java.lang.String string)
Parses a type list from a string.
|
java.util.Map<java.lang.String,Type> |
TypeParser.parseTypeParameters(AntlrTypeParameters typeParameters)
Parses a free type list from an AntlrTypeParameters object.
|
java.util.Map<java.lang.String,Type> |
TypeParser.parseTypeParameters(java.lang.String string)
Parses a type parameter declaration from a string.
|
Modifier and Type | Method and Description |
---|---|
protected ParsedExpression |
AbstractParser.createConstant(org.antlr.runtime.tree.Tree tree,
java.lang.Object constant,
Type type)
Creates constant of the given type, with the given value
|
static ClassType |
ParserUtil.getReferencedClassType(Type type)
If the given type is a class type or a reference to a class type,
that class type is returned.
|
Expression |
Parser.parse(AntlrExpressionTree expressionTree,
Type expectedType)
Parses an expression from a pre-parsed antlr tree for the given expected type.
|
Expression |
Parser.parse(java.lang.String source,
Type expectedType)
Parses an expression from a string source for the given expected type.
|
protected ParsedExpression |
AbstractParser.parse(org.antlr.runtime.tree.Tree tree,
Type expectedType)
Parse an expression from a tree for the given
expectedType . |
ConstraintAst |
ConstraintParser.parseConstraint(java.lang.String string,
Type targetType)
Parses a constraint.
|
Parsed<ConstraintAst> |
ConstraintParser.parseConstraintLax(java.lang.String string,
Type targetType)
Parses a constraint.
|
protected ParsedExpression |
AbstractParser.parseInNamespace(org.antlr.runtime.tree.Tree tree,
Type expectedType,
NamespaceModel namespace) |
protected ParsedExpression |
AbstractParser.parseInNewNamespace(org.antlr.runtime.tree.Tree tree,
Type expectedType)
Parses a given tree in a new namespace to provide a correct separation of
local variables.
|
ParsedExpression |
Parser.parseLax(AntlrExpressionTree expressionTree,
Type expectedType)
Parses an expression from a pre-parsed antlr tree for the given expected type.
|
protected ParsedExpression |
Parser.parseNoCheck(org.antlr.runtime.tree.Tree tree,
Type expectedType) |
protected abstract ParsedExpression |
AbstractParser.parseNoCheck(org.antlr.runtime.tree.Tree tree,
Type expectedType)
Parse expression.
|
protected ParsedExpression |
Parser.validateOrConvert(ParsedExpression expr,
Type expectedType) |
protected ParsedExpression |
AbstractParser.validateOrConvert(ParsedExpression expr,
Type expectedType)
Provides some validation and conversion
|
Modifier and Type | Method and Description |
---|---|
Parsed<TaskParametersAst> |
TaskParametersParser.parseTaskParameters(AntlrTaskParametersTree antlrTree,
java.util.Map<java.lang.String,Type> parameterTypes)
Parses task parameters from pre-parsed ANTLR tree.
|
TaskParametersAst |
TaskParametersParser.parseTaskParameters(java.lang.String source,
java.util.Map<java.lang.String,Type> parameterTypes)
Parses task parameters.
|
Modifier and Type | Method and Description |
---|---|
Type |
FunctionSignature.getArgumentType(int i)
Returns i-th type.
|
Type |
FunctionSignature.getArgumentType(java.lang.String argName)
Returns the argument type for a given argument name.
|
Type |
FunctionSignature.getArgumentTypeVariadic(int i)
Returns i-th argument type considering also variadic arguments.
|
Type |
FunctionSignature.getFreeTypeBound(FreeType freeType)
Returns the free type upper bound, or
null if there is no
bound defined. |
Type |
SignatureMapping.getReturnType()
Returns the return type of signature, after free-type substitution.
|
Type |
FunctionSignature.getReturnType()
Returns the return type of this block.
|
Type |
SignatureParameter.getType()
Returns type of this parameter
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<FreeType,Type> |
FunctionSignature.getFreeTypeBounds() |
Modifier and Type | Method and Description |
---|---|
boolean |
FunctionConstraint.eval(int argCount,
Type type)
Returns true if the constraint is satisfied for the given function type and argument count.
|
FunctionSignature.Builder |
FunctionSignature.Builder.freeTypeBound(FreeType freeType,
Type type)
Adds a free type upper bound.
|
SignatureMapping |
FunctionSignature.match(int argCount,
Type type)
Returns mapping of the free types in this function signature such that the resulting closure
type is the most general type which is subtype of
type or null if such mapping does
not exist. |
SignatureMapping |
FunctionSignature.match(Type returnType,
java.util.Map<java.lang.String,Type> args)
Returns mapping of the free types in this function signature to provided actual
named parameter types; or
null if such mapping is not possible. |
SignatureMapping |
FunctionSignature.match(Type returnType,
Type... actualTypes)
Returns mapping of the free types in this function signature to provided actual parameter
types; or null if such mapping is not possible.
|
SignatureMapping |
FunctionSignature.match(Type returnType,
Type... actualTypes)
Returns mapping of the free types in this function signature to provided actual parameter
types; or null if such mapping is not possible.
|
FunctionSignature.Builder |
FunctionSignature.Builder.param(Type... types)
Adds parameters.
|
FunctionSignature.Builder |
FunctionSignature.Builder.param(Type type,
java.lang.String name)
Adds named parameter.
|
FunctionSignature.Builder |
FunctionSignature.Builder.paramVariadic(Type type)
Adds variadic parameter.
|
FunctionSignature.Builder |
FunctionSignature.Builder.paramVariadic(Type type,
java.lang.String name)
Adds named variadic parameter.
|
FunctionSignature.Builder |
FunctionSignature.Builder.returns(Type returnType)
Sets return type.
|
Modifier and Type | Method and Description |
---|---|
SignatureMapping |
FunctionSignature.match(Type returnType,
java.util.Map<java.lang.String,Type> args)
Returns mapping of the free types in this function signature to provided actual
named parameter types; or
null if such mapping is not possible. |
Constructor and Description |
---|
ComplexSignatureMatcher(java.lang.String namePattern,
java.util.List<? extends Type> args,
Type returnType,
java.util.Map<java.lang.String,java.lang.String> metadataPattern)
Constructs a new matcher instance.
|
ExtensionMethodSignatureMatcher(Type type)
Constructs a new matcher instance.
|
NamedArgsSignatureMatcher(java.util.Map<java.lang.String,Type> args,
Type returnType)
Constructs a new matcher instance.
|
SignatureParameter(Type type)
Creates a new unnamed signature parameter.
|
SignatureParameter(Type type,
boolean variadic)
Creates a new unnamed signature parameter.
|
SignatureParameter(Type type,
java.lang.String name)
Creates a new signature parameter.
|
SignatureParameter(Type type,
java.lang.String name,
boolean variadic,
boolean isRequired,
java.lang.String defaultValue)
Creates a new signature parameter.
|
Constructor and Description |
---|
ComplexSignatureMatcher(java.lang.String namePattern,
java.util.List<? extends Type> args,
Type returnType,
java.util.Map<java.lang.String,java.lang.String> metadataPattern)
Constructs a new matcher instance.
|
NamedArgsSignatureMatcher(java.util.Map<java.lang.String,Type> args,
Type returnType)
Constructs a new matcher instance.
|
Modifier and Type | Interface and Description |
---|---|
interface |
NamedType
A common superclass for defined named types.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractNamedType |
class |
AbstractType |
class |
BinaryType
Binary type representing string.
|
class |
BooleanType
Simple type representing boolean.
|
class |
ClassType |
class |
ClosureType
This class represents closure It contains a signature, from which you can
obtain return type
|
class |
CollectionType
A collection type.
|
class |
ContainerType
Base class for all container types.
|
class |
DateType
Simple type representing date.
|
class |
DecimalType
Simple type representing decimal type.
|
class |
EnumerationBaseType
This represents an
Enumeration type which a common supertype for
all declared enumeration types . |
class |
EnumerationType
This represents an enumeration type declared by user.
|
class |
FreeType
This type represents any type in function signature.
|
class |
IntegerType
Simple type representing integer.
|
class |
InterfaceType
Interface type.
|
class |
IntersectionType
Intersection type (similar to Java intersection type).
|
class |
ListType
Type representing list container.
|
class |
LocalDateTimeType
Simple type representing local date time.
|
class |
LocalDateType
Simple type representing date.
|
class |
MapType
Type representing array container.
|
class |
NamedClassType |
class |
NullType
Singleton type representing type of expression "null"
|
class |
ObjectType
Simple type representing object.
|
class |
PropertyPathType
A type representing a path e.g.
|
class |
PropertyType
A reflection type for record fields and associations.
|
class |
RecordBaseType
This represents an
Record type which a common supertype for
all declared record types . |
class |
RecordType
Type representing a record.
|
class |
ReferenceType
This type references value stored in variable, either directly, or inside
container or record.
|
class |
SetType
Type representing set container.
|
class |
SimpleType
Data type representing simple types.
|
class |
StringType
Simple type representing string.
|
class |
TypeType
Type representing a type.
|
class |
VoidType |
Modifier and Type | Method and Description |
---|---|
protected Type |
CopyTypeVisitor.copy(Type type) |
Type |
VoidType.findCommonSubtype(Type other) |
Type |
TypeType.findCommonSubtype(Type other) |
Type |
Type.findCommonSubtype(Type other)
Returns the common subtype, i.e.
|
Type |
SetType.findCommonSubtype(Type other) |
Type |
ReferenceType.findCommonSubtype(Type other) |
Type |
NullType.findCommonSubtype(Type other) |
Type |
MapType.findCommonSubtype(Type other) |
Type |
ListType.findCommonSubtype(Type other) |
Type |
CollectionType.findCommonSubtype(Type other) |
Type |
ClosureType.findCommonSubtype(Type other) |
Type |
ClassType.findCommonSubtype(Type other) |
Type |
AbstractType.findCommonSubtype(Type other) |
static Type |
TypeHelper.findCommonSupertype(java.util.Collection<? extends Type> types)
Returns the most specific common supertype of given types.
|
static Type |
TypeHelper.findCommonSupertype(Type... types)
Returns the most specific common supertype of given types.
|
Type |
VoidType.findCommonSupertype(Type other) |
Type |
TypeType.findCommonSupertype(Type other) |
Type |
Type.findCommonSupertype(Type other)
Returns the common supertype, i.e.
|
Type |
SetType.findCommonSupertype(Type other) |
Type |
ReferenceType.findCommonSupertype(Type other) |
Type |
NullType.findCommonSupertype(Type other) |
Type |
MapType.findCommonSupertype(Type other) |
Type |
ListType.findCommonSupertype(Type other) |
Type |
CollectionType.findCommonSupertype(Type other) |
Type |
ClosureType.findCommonSupertype(Type other) |
Type |
ClassType.findCommonSupertype(Type other) |
Type |
AbstractType.findCommonSupertype(Type other) |
static Type |
TypeHelper.findCommonSupertypeForRuntimeObjects(java.util.Collection<?> objects)
Returns the most specific common supertype of types of given objects.
|
Type |
ClosureType.getArgumentType(int i)
Returns the i-th argument type
|
Type |
TypeMapping.getFreeTypeMapping(FreeType freeType)
Returns actual type corresponding to given free type (or "null" if no
mapping is specified).
|
Type |
FreeTypeMapping.getFreeTypeMapping(FreeType freeType)
Returns the mapping of given free type.
|
Type |
MapType.getIndexType()
Returns the index type of this array type.
|
Type |
ContainerType.getItemType()
Returns the item type of this container type.
|
Type |
ReferenceType.getReferencedType()
Returns the referred type.
|
Type |
ClosureType.getReturnType()
Returns the return type.
|
Type |
VoidType.getSupertype() |
Type |
TypeType.getSupertype() |
Type |
Type.getSupertype()
Returns a direct supertype to this type (or null for "Object" type).
|
Type |
StringType.getSupertype() |
Type |
SetType.getSupertype() |
Type |
ReferenceType.getSupertype() |
Type |
RecordBaseType.getSupertype() |
Type |
PropertyType.getSupertype() |
Type |
PropertyPathType.getSupertype() |
Type |
ObjectType.getSupertype() |
Type |
NullType.getSupertype() |
Type |
MapType.getSupertype() |
Type |
LocalDateType.getSupertype() |
Type |
LocalDateTimeType.getSupertype() |
Type |
ListType.getSupertype() |
Type |
IntegerType.getSupertype() |
Type |
FreeType.getSupertype() |
Type |
EnumerationType.getSupertype() |
Type |
EnumerationBaseType.getSupertype() |
Type |
DecimalType.getSupertype() |
Type |
DateType.getSupertype() |
Type |
CollectionType.getSupertype() |
Type |
ClosureType.getSupertype() |
Type |
ClassType.getSupertype() |
Type |
BooleanType.getSupertype() |
Type |
BinaryType.getSupertype() |
Type |
TypeType.getType()
Returns the represented type.
|
Type |
RecordProperty.getType()
Returns type of the property.
|
Type |
RecordAssociation.getType() |
Type |
Field.getType() |
Type |
Type.substituteFreeTypes(FreeTypeMapping mapping)
Returns a type where free types are substituted by provided mapping.
|
Type |
FreeType.substituteFreeTypes(FreeTypeMapping mapping) |
Type |
CollectionType.substituteFreeTypes(FreeTypeMapping mapping) |
Type |
AbstractType.substituteFreeTypes(FreeTypeMapping mapping) |
static Type |
TypeHelper.typeForRuntimeObject(java.lang.Object object)
Returns type for corresponding java object.
|
Type |
CopyTypeVisitor.visit(BinaryType binaryType) |
Type |
CopyTypeVisitor.visit(BooleanType booleanType) |
Type |
CopyTypeVisitor.visit(ClosureType closureType) |
Type |
CopyTypeVisitor.visit(CollectionType collectionType) |
Type |
CopyTypeVisitor.visit(DateType dateType) |
Type |
CopyTypeVisitor.visit(DecimalType decimalType) |
Type |
CopyTypeVisitor.visit(EnumerationBaseType enumerationType) |
Type |
CopyTypeVisitor.visit(EnumerationType enumerationType) |
Type |
CopyTypeVisitor.visit(FreeType freeType) |
Type |
CopyTypeVisitor.visit(IntegerType integerType) |
Type |
CopyTypeVisitor.visit(InterfaceType interfaceType) |
Type |
CopyTypeVisitor.visit(IntersectionType intersectionType) |
Type |
CopyTypeVisitor.visit(ListType listType) |
Type |
CopyTypeVisitor.visit(LocalDateTimeType type) |
Type |
CopyTypeVisitor.visit(LocalDateType type) |
Type |
CopyTypeVisitor.visit(MapType mapType) |
Type |
CopyTypeVisitor.visit(NullType nullType) |
Type |
CopyTypeVisitor.visit(ObjectType objectType) |
Type |
CopyTypeVisitor.visit(PropertyPathType propertyPathType) |
Type |
CopyTypeVisitor.visit(PropertyType propertyType) |
Type |
CopyTypeVisitor.visit(RecordBaseType recordType) |
Type |
CopyTypeVisitor.visit(RecordType recordType) |
Type |
CopyTypeVisitor.visit(ReferenceType referenceType) |
Type |
CopyTypeVisitor.visit(SetType setType) |
Type |
CopyTypeVisitor.visit(StringType stringType) |
Type |
CopyTypeVisitor.visit(TypeType typeType) |
Type |
CopyTypeVisitor.visit(VoidType voidType) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<FreeType,Type> |
TypeMapping.asMap()
Returns the mapping as a map where keys are free types
and values are the actual mapped types.
|
protected java.util.List<Type> |
CopyTypeVisitor.copy(java.util.List<Type> types) |
java.util.List<Type> |
ClosureType.getArgumentTypes()
Returns unmodifiable list of argument types.
|
Modifier and Type | Method and Description |
---|---|
boolean |
VoidType.assignableTo(Type target) |
boolean |
TypeType.assignableTo(Type target) |
boolean |
Type.assignableTo(Type target)
Returns information whether a value of this type can be assigned to a
variable of another type.
|
boolean |
SetType.assignableTo(Type target) |
boolean |
ReferenceType.assignableTo(Type target) |
boolean |
NullType.assignableTo(Type target)
Null can be assigned to any type
|
boolean |
MapType.assignableTo(Type target) |
boolean |
ListType.assignableTo(Type target) |
boolean |
IntersectionType.assignableTo(Type target) |
boolean |
CollectionType.assignableTo(Type target) |
boolean |
ClosureType.assignableTo(Type target) |
boolean |
ClassType.assignableTo(Type target) |
boolean |
AbstractType.assignableTo(Type target) |
protected Type |
CopyTypeVisitor.copy(Type type) |
Type |
VoidType.findCommonSubtype(Type other) |
Type |
TypeType.findCommonSubtype(Type other) |
Type |
Type.findCommonSubtype(Type other)
Returns the common subtype, i.e.
|
Type |
SetType.findCommonSubtype(Type other) |
Type |
ReferenceType.findCommonSubtype(Type other) |
Type |
NullType.findCommonSubtype(Type other) |
Type |
MapType.findCommonSubtype(Type other) |
Type |
ListType.findCommonSubtype(Type other) |
Type |
CollectionType.findCommonSubtype(Type other) |
Type |
ClosureType.findCommonSubtype(Type other) |
Type |
ClassType.findCommonSubtype(Type other) |
Type |
AbstractType.findCommonSubtype(Type other) |
static Type |
TypeHelper.findCommonSupertype(Type... types)
Returns the most specific common supertype of given types.
|
Type |
VoidType.findCommonSupertype(Type other) |
Type |
TypeType.findCommonSupertype(Type other) |
Type |
Type.findCommonSupertype(Type other)
Returns the common supertype, i.e.
|
Type |
SetType.findCommonSupertype(Type other) |
Type |
ReferenceType.findCommonSupertype(Type other) |
Type |
NullType.findCommonSupertype(Type other) |
Type |
MapType.findCommonSupertype(Type other) |
Type |
ListType.findCommonSupertype(Type other) |
Type |
CollectionType.findCommonSupertype(Type other) |
Type |
ClosureType.findCommonSupertype(Type other) |
Type |
ClassType.findCommonSupertype(Type other) |
Type |
AbstractType.findCommonSupertype(Type other) |
java.util.Collection<FunctionSignature> |
ClassType.getMethodsForName(java.lang.String name,
Type[] paramTypes,
Visibility visibility)
Returns a collection of methods with the given name and parameter types.
|
static boolean |
TypeHelper.isUnrelated(Type type1,
Type type2) |
boolean |
TypeType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
Type.matchesSubtype(Type other,
TypeMapping mapping)
Performs type matching on this type.
|
boolean |
SetType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
ReferenceType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
MapType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
ListType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
FreeType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
CollectionType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
ClosureType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
AbstractType.matchesSubtype(Type other,
TypeMapping mapping) |
boolean |
TypeType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
Type.matchesSupertype(Type other,
TypeMapping mapping)
Performs type matching on this type.
|
boolean |
SetType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
ReferenceType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
MapType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
ListType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
FreeType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
CollectionType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
ClosureType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
AbstractType.matchesSupertype(Type other,
TypeMapping mapping) |
boolean |
TypeMapping.subType(FreeType freeType,
Type other)
Marks that
FreeType should be subtype of other . |
boolean |
TypeMapping.superType(FreeType freeType,
Type other)
Marks that
FreeType should be supertype of other . |
T |
SimpleTypeVisitor.visitType(Type type)
This method is called from each individual visit method for each type.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Type> |
CopyTypeVisitor.copy(java.util.List<Type> types) |
static Type |
TypeHelper.findCommonSupertype(java.util.Collection<? extends Type> types)
Returns the most specific common supertype of given types.
|
void |
TypeMapping.initBounds(java.util.Map<FreeType,Type> initialBounds)
Initializes type bounds.
|
Constructor and Description |
---|
ClosureType(Type returnType,
java.util.List<? extends Type> argTypes)
Constructor
|
ClosureType(Type returnType,
Type... argTypes)
Constructor
|
ClosureType(Type returnType,
Type... argTypes)
Constructor
|
CollectionType(Type itemType)
Creates a new instance of a collection type.
|
Field(java.lang.String name,
Type type)
Constructor
|
Field(java.lang.String name,
Type type,
boolean readonly) |
ListType(Type itemType)
Creates new instance of
ListType . |
MapType(Type indexType,
Type itemType)
Creates new instance of
MapType . |
RecordField(java.lang.String name,
Type type)
Constructs a public record field with no metadata, no XML mapping, read/write
and not used for equals.
|
RecordField(java.lang.String name,
Type type,
java.util.Map<java.lang.String,java.lang.String> metadata) |
RecordField(java.lang.String name,
Type type,
java.util.Map<java.lang.String,java.lang.String> metadata,
RecordFieldXmlMapping xmlMapping,
boolean readonly,
boolean usedForEquals) |
RecordField(java.lang.String name,
Type type,
Visibility visibility)
Constructs a record field with a given visibility, no metadata, no XML mapping, read/write
and not used for equals.
|
RecordField(java.lang.String name,
Type type,
Visibility visibility,
java.util.Map<java.lang.String,java.lang.String> metadata,
RecordFieldXmlMapping xmlMapping,
boolean readonly,
boolean usedForEquals)
Constructs a record field.
|
ReferenceType(Type type)
Creates a new ReferenceType referring the provided type.
|
SetType(Type itemType)
Creates new instance of
SetType . |
TypeType(Type type)
Creates new instance of
TypeType . |
Constructor and Description |
---|
ClosureType(Type returnType,
java.util.List<? extends Type> argTypes)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Type |
NodeBinding.getType() |
Constructor and Description |
---|
NodeBinding(java.lang.String namespace,
java.lang.String name,
boolean nillable,
boolean required,
Type type,
java.lang.String xsdTypeName,
java.lang.String xsdTypeNamespace,
BaseXSDType mappedAs) |
Modifier and Type | Method and Description |
---|---|
Type |
TypeFunctions.getCollectionItemType(ExecutionContext ctx,
Type collectionType)
Returns the collection item type.
|
Type |
CollectionsFunctions.getItemType(ExecutionContext ctx,
Type type)
Deprecated.
Replaced by
TypeFunctions.getCollectionItemType(ExecutionContext, Type) . This function is used in LSPS 3.1 |
Type |
TypeFunctions.getMapIndexType(ExecutionContext ctx,
Type mapType)
Deprecated.
|
Type |
TypeFunctions.getMapItemType(ExecutionContext ctx,
Type mapType)
Deprecated.
|
Type |
TypeFunctions.getMapKeyType(ExecutionContext ctx,
Type mapType)
Returns the map key type.
|
Type |
TypeFunctions.getMapValueType(ExecutionContext ctx,
Type mapType)
Returns the map value type.
|
Type |
PropertyFunctions.getPropertyPathType(ExecutionContext ctx,
PropertyPath propertyPath)
Returns the property path type (the type of the last property).
|
Type |
PropertyFunctions.getPropertyType(ExecutionContext ctx,
Property property)
Returns a property type.
|
Type |
TypeFunctions.getRecordSupertype(ExecutionContext ctx,
Type recordType)
Returns the supertype of the given record type.
|
Type |
TypeFunctions.getReferencedType(ExecutionContext ctx,
Type referenceType)
Returns the referenced type.
|
Type |
TypeFunctions.toType(ExecutionContext ctx,
java.lang.String string)
Parses a given string into a type object.
|
Type |
ObjectFunctions.typeOf(java.lang.Object object)
Returns the type of object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ObjectFunctions.cast(ExecutionContext ctx,
java.lang.Object object,
Type type)
If the type of the object is compatible with the specified type, the function returns the
object casted to the type.
|
Decimal |
QueryFunctionsImpl.countAll(ExecutionContext ctx,
Type type) |
Decimal |
QueryFunctions.countAll(ExecutionContext ctx,
Type type)
Counts all shared records of a given type.
|
RecordHolder |
ActionFunctionsImpl.createInstance(ExecutionContext ctx,
Type type,
MapHolder values) |
RecordHolder |
ActionFunctions.createInstance(ExecutionContext ctx,
Type type,
MapHolder values)
Creates new instance of record type T.
|
ListHolder |
QueryFunctionsImpl.findAll(ExecutionContext ctx,
Type type) |
ListHolder |
QueryFunctions.findAll(ExecutionContext ctx,
Type type)
Finds all shared records of a given type.
|
RecordHolder |
QueryFunctionsImpl.findById(ExecutionContext ctx,
java.lang.Object id,
Type type) |
RecordHolder |
QueryFunctions.findById(ExecutionContext ctx,
java.lang.Object id,
Type type)
Finds a shared record of a given type with a given primary key.
|
RecordHolder |
QueryFunctionsImpl.findById(ExecutionContext ctx,
Type type,
java.lang.Object id) |
RecordHolder |
QueryFunctions.findById(ExecutionContext ctx,
Type type,
java.lang.Object id)
Finds a shared record of a given type with a given primary key.
|
RecordHolder |
QueryFunctionsImpl.findByIdAndRevision(ExecutionContext ctx,
java.lang.Object id,
Type type,
Decimal auditRevision) |
RecordHolder |
QueryFunctions.findByIdAndRevision(ExecutionContext ctx,
java.lang.Object id,
Type type,
Decimal auditRevision)
Finds a shared record of a given type with a given primary key for specified audit revision.
|
Type |
TypeFunctions.getCollectionItemType(ExecutionContext ctx,
Type collectionType)
Returns the collection item type.
|
ListHolder |
AdvancedReflectionFunctionsImpl.getFunctions(ExecutionContext ctx,
java.lang.String namePattern,
ListHolder arguments,
Type returnType,
MapHolder metadataPattern) |
ListHolder |
AdvancedReflectionFunctions.getFunctions(ExecutionContext ctx,
java.lang.String namePattern,
ListHolder arguments,
Type returnType,
MapHolder metadata) |
ListHolder |
AdvancedReflectionFunctionsImpl.getFunctions(ExecutionContext ctx,
java.lang.String name,
MapHolder arguments,
Type returnType) |
ListHolder |
AdvancedReflectionFunctions.getFunctions(ExecutionContext ctx,
java.lang.String name,
MapHolder arguments,
Type returnType) |
ListHolder |
TypeFunctions.getInstantiableRecordTypes(ExecutionContext ctx,
Type type)
Returns a list of concrete, non-system record types assignable to a given type.
|
Type |
CollectionsFunctions.getItemType(ExecutionContext ctx,
Type type)
Deprecated.
Replaced by
TypeFunctions.getCollectionItemType(ExecutionContext, Type) . This function is used in LSPS 3.1 |
Type |
TypeFunctions.getMapIndexType(ExecutionContext ctx,
Type mapType)
Deprecated.
|
Type |
TypeFunctions.getMapItemType(ExecutionContext ctx,
Type mapType)
Deprecated.
|
Type |
TypeFunctions.getMapKeyType(ExecutionContext ctx,
Type mapType)
Returns the map key type.
|
Type |
TypeFunctions.getMapValueType(ExecutionContext ctx,
Type mapType)
Returns the map value type.
|
RecordHolder |
ReflectionFunctionsImpl.getProcessEntity(ExecutionContext ctx,
Type type) |
RecordHolder |
ReflectionFunctions.getProcessEntity(ExecutionContext ctx,
Type type)
Returns the associated process entity.
|
ListHolder |
PropertyFunctions.getProperties(ExecutionContext ctx,
Type type)
Returns the properties of the given record type.
|
Property |
PropertyFunctions.getProperty(ExecutionContext ctx,
Type type,
java.lang.String name)
Returns a property with a given name or
null
if there is no property with a given name. |
Type |
TypeFunctions.getRecordSupertype(ExecutionContext ctx,
Type recordType)
Returns the supertype of the given record type.
|
Type |
TypeFunctions.getReferencedType(ExecutionContext ctx,
Type referenceType)
Returns the referenced type.
|
ListHolder |
QueryFunctionsImpl.getRevisions(ExecutionContext ctx,
java.lang.Object id,
Type type,
java.util.Date from,
java.util.Date to) |
ListHolder |
QueryFunctions.getRevisions(ExecutionContext ctx,
java.lang.Object id,
Type type,
java.util.Date from,
java.util.Date to)
Returns audit revisions for the entity.
|
java.lang.String |
LabelFunctions.getTypeLabel(ExecutionContext ctx,
Type type)
Returns the label of the given type.
|
java.lang.Boolean |
ObjectFunctions.isInstance(ExecutionContext ctx,
java.lang.Object object,
Type type)
Returns True, if the specified object is assignment-compatible with (is kind of) type.
|
java.lang.Boolean |
ObjectFunctions.isSubtype(ExecutionContext ctx,
Type subtype,
Type supertype)
Returns True, if sub type is a sub type of super type.
|
ListHolder |
EnumerationFunctions.literals(ExecutionContext ctx,
Type enumeration)
Returns a list of literals from the specified enumeration.
|
EnumerationImpl |
EnumerationFunctions.nameToLiteral(ExecutionContext ctx,
Type enumeration,
java.lang.String name)
Transforms the specified enumeration’s literal name to the corresponding literal value.
|
CollectionHolder |
CollectionsFunctions.select(ExecutionContext ctx,
CollectionHolder collection,
Type type)
Returns a collection all elements of the given type, null elements
not included.
|
ListHolder |
CollectionsFunctions.select(ExecutionContext ctx,
ListHolder list,
Type type)
Returns a list all elements of the given type, null elements
not included.
|
SetHolder |
CollectionsFunctions.select(ExecutionContext ctx,
SetHolder set,
Type type)
Returns a set all elements of the given type, null elements
not included.
|
Modifier and Type | Method and Description |
---|---|
ListHolder |
VaadinUtilsCommon.findTopmostComponents(ExecutionContext ctx,
Type type,
RecordHolder root) |
Constructor and Description |
---|
WsSoapMessageBuilder(java.util.Map<java.lang.String,java.lang.String> metadata,
Type type,
java.lang.String metadataPrefix,
boolean useDefaultMapping,
BinaryDataService binaryDataService)
Construct new instance for given input type
|
WsSoapMessageParser(ExecutionContext context,
Type outputType,
java.util.List<RecordType> soapFaultTypes,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.lang.String metadataPrefix,
boolean useDefaultMapping,
BinaryDataService binaryDataService,
CoreTypeFactory coreTypeFactory)
Constructs new instance initialized with given output type and soap fault types.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
WsSoapCallFunctionsImpl.call(ExecutionContext context,
MapHolder soapMetadata,
RecordHolder sslConfig,
java.lang.String endpointAddress,
java.lang.String login,
java.lang.String password,
RecordHolder input,
ListHolder requestSoapHeaders,
MapHolder requestHeaders,
Decimal readTimeout,
Type outputType,
ListHolder responseSoapHeaders,
ReferenceHolder responseHeaders,
ReferenceHolder error,
java.lang.Boolean logMessages) |
java.lang.Object |
WsSoapCallFunctions.call(ExecutionContext context,
MapHolder soapMetadata,
RecordHolder sslConfig,
java.lang.String endpointAddress,
java.lang.String login,
java.lang.String password,
RecordHolder input,
ListHolder requestSoapHeaders,
MapHolder requestHeaders,
Decimal readTimeout,
Type outputType,
ListHolder responseSoapHeaders,
ReferenceHolder responseHeaders,
ReferenceHolder error,
java.lang.Boolean logMessages)
Webservice call.
|
Modifier and Type | Method and Description |
---|---|
protected Type |
WsSoapCall.getInputType(TaskContext context) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
XmlFunctionsImpl.parseXml(ExecutionContext context,
java.lang.String xml,
Type resultType) |
java.lang.Object |
XmlFunctions.parseXml(ExecutionContext context,
java.lang.String xml,
Type resultType)
Parses the given
xml string into the instance of the given type |
Modifier and Type | Method and Description |
---|---|
void |
XmlBuilder.createAndBuildElementBody(org.w3c.dom.Document document,
org.w3c.dom.Node parent,
Type contentType,
java.lang.Object content,
java.lang.String xmlNamespace,
java.lang.String nodeName,
java.lang.String xsdType)
Creates element for given object and creates its body,
depending on what kind of object it is.
|
static java.lang.String |
XsdUtil.getDefaultXsdType(Type type)
Returns default xsd type used for given SimpleType
|
static java.lang.String |
XsdUtil.getXsdType(XmlMapping xmlMapping,
Type type)
Returns either the xsd type from mapping
or if there is no entry in the mapping, it returns the default type (see
XsdUtil.getDefaultXsdType(com.whitestein.lsps.lang.type.Type) ). |
java.lang.Object |
XmlParser.parseObject(org.w3c.dom.Node parent,
Type type,
boolean isNillable,
java.lang.String xmlNamespace,
java.lang.String nodeName,
java.lang.String xsdType)
Tries to parse object of the given type from parent element, using child elements
with the given xml namespace and node name.
|
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.