Package | Description |
---|---|
com.whitestein.lsps.engine.dto.val | |
com.whitestein.lsps.engine.lang | |
com.whitestein.lsps.engine.lang.compiled | |
com.whitestein.lsps.human.generation | |
com.whitestein.lsps.human.model | |
com.whitestein.lsps.lang |
This is the main package for the LSPS expression language.
|
com.whitestein.lsps.lang.ast | |
com.whitestein.lsps.lang.exec |
All types in the language have their Java implementation class.
|
com.whitestein.lsps.lang.module | |
com.whitestein.lsps.lang.operation | |
com.whitestein.lsps.lang.parser |
This package contains ANTLR-based LSPS language parser (
Parser ). |
com.whitestein.lsps.lang.signature | |
com.whitestein.lsps.lang.type |
Provides classes for type reflection.
|
com.whitestein.lsps.orgstructure.generation |
Modifier and Type | Method and Description |
---|---|
Object |
RecordValue.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
Object |
RecordProxySetHolder.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments) |
Object |
RecordHolderBase.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments) |
Object |
ReadOnlyRecordHolder.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments) |
Modifier and Type | Field and Description |
---|---|
protected Map<FunctionSignature,String> |
CommonCompiler.formNames |
Modifier and Type | Method and Description |
---|---|
Map<FunctionSignature,String> |
CommonCompiler.JavaTypesResolver.getFormClassNames() |
Modifier and Type | Method and Description |
---|---|
static String |
CommonCompiler.classNameForFunction(FunctionSignature signature,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings)
Returns name of generated class for function.
|
static javassist.CtClass |
FormCompiler.createClassForForm(QID path,
Map<FunctionSignature,FormCompiler> formCompilers,
javassist.ClassPool classPool,
FunctionSignature signature,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Creates class for form without implementations.
|
protected javassist.CtClass |
FormCompiler.createClassWithoutImplementations(javassist.ClassPool classPool,
FunctionSignature signature) |
protected SrcExpression |
CommonCompiler.createMethodBody(javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
RecordType recordType,
FunctionSignature signature,
boolean isInForm) |
void |
FormCompiler.createMethodBodyForForm(javassist.CtClass cls,
FunctionSignature signature) |
Object |
CompiledRecord.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments) |
Class<?> |
CommonCompiler.JavaTypesResolver.getClassForForm(FunctionSignature signature) |
String |
CommonCompiler.JavaTypesResolver.getClassNameForForm(FunctionSignature signature) |
List<Class<?>> |
CommonCompiler.getExceptionTypes(String className,
String methodName,
FunctionSignature signature) |
static String |
CommonCompiler.getFunctionName(FunctionSignature signature) |
protected SrcClass |
NamespaceCompiler.srcClass(FunctionSignature signature) |
Modifier and Type | Method and Description |
---|---|
static void |
NamespaceCompiler.bindClassForProcessModel(Class<?> existingClass,
com.whitestein.lsps.model.ProcessModel processModel,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
QID path,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames)
Binds already exiting java class representing namespace to corresponding model namespace.
|
static javassist.CtClass |
FormCompiler.createClassForForm(QID path,
Map<FunctionSignature,FormCompiler> formCompilers,
javassist.ClassPool classPool,
FunctionSignature signature,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Creates class for form without implementations.
|
static javassist.CtClass |
FormCompiler.createClassForForm(QID path,
Map<FunctionSignature,FormCompiler> formCompilers,
javassist.ClassPool classPool,
FunctionSignature signature,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Creates class for form without implementations.
|
static javassist.CtClass |
RecordCompiler.createClassForInterfaceWithoutImplementations(Map<NamedClassType,RecordCompiler> recordCompilers,
javassist.ClassPool classPool,
InterfaceType interfaceType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Creates class for interface without implementations..
|
static javassist.CtClass |
NamespaceCompiler.createClassForProcessDescription(javassist.ClassPool classPool,
String superclassName,
String fullClassName,
com.whitestein.lsps.model.ProcessModel processModel,
com.whitestein.lsps.model.ProcessDescription processDescription,
String discriminator,
QID path,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
boolean generateClass,
boolean generateSource,
FileWriter fileWriter)
Compiles namespace to java class.
|
static javassist.CtClass |
NamespaceCompiler.createClassForProcessModel(javassist.ClassPool classPool,
String fullClassName,
com.whitestein.lsps.model.ProcessModel processModel,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
FileWriter fileWriter,
boolean isAdditionalExpressionModel)
Compiles namespace to java class.
|
static javassist.CtClass |
RecordCompiler.createClassForRecordWithoutImplementations(Map<NamedClassType,RecordCompiler> recordCompilers,
javassist.ClassPool classPool,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Creates class for record without implementations..
|
static javassist.CtClass |
RecordCompiler.createConstructorBodies(javassist.ClassPool classPool,
javassist.CtClass ctClass,
javassist.CtClass moduleCls,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Creates constructor bodies.
|
static javassist.CtClass |
RecordCompiler.createConstructorHeaders(javassist.ClassPool classPool,
javassist.CtClass ctClass,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Create constructor headers.
|
static javassist.CtClass |
RecordCompiler.createHeadersOfMethods(javassist.ClassPool classPool,
javassist.CtClass ctClass,
InterfaceType interfaceType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtMethod,SrcMethod> methods)
Creates headers of methods.
|
static javassist.CtClass |
RecordCompiler.createHeadersOfMethods(javassist.ClassPool classPool,
javassist.CtClass ctClass,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtMethod,SrcMethod> methods)
Creates headers of methods.
|
static void |
RecordCompiler.createImplementationsOfRecordMethods(javassist.ClassPool classPool,
javassist.CtClass ctClass,
javassist.CtClass moduleCls,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtMethod,SrcMethod> methods)
Creates implementation of methods.
|
static void |
NamespaceCompiler.findClassNames(javassist.ClassPool classPool,
String className,
com.whitestein.lsps.model.ProcessModel processModel,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
QID path,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames) |
static javassist.CtClass |
RecordCompiler.setInterfaces(javassist.ClassPool classPool,
javassist.CtClass cls,
InterfaceType interfaceType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Sets interfaces.
|
static javassist.CtClass |
RecordCompiler.setSuperclassAndInterfaces(javassist.ClassPool classPool,
javassist.CtClass cls,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Sets superclass and interfaces.
|
Constructor and Description |
---|
CommonCompiler(boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames)
Creates new instance.
|
JavaTypesResolver(Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<FreeType,Type> freeTypeBounds,
Map<ClassType,String> recordClassNames,
Map<FunctionSignature,String> formClassNames) |
NamespaceCompiler(QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
FileWriter fileWriter)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
DocumentSignatureGeneration.DocOperation.getCompiledToJavaName(FunctionSignature signature) |
SrcExpression |
DocumentSignatureGeneration.DocOperation.getSrcExpression(FunctionSignature signature) |
Modifier and Type | Method and Description |
---|---|
FunctionSignature |
Forms.getFormFunction(String id)
Returns function signature of the form with the model id.
|
Constructor and Description |
---|
Forms(Map<String,FunctionSignature> forms)
Creates new instance.
|
Constructor and Description |
---|
FunctionArgumentInterpreter(FunctionSignature signature)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract FunctionSignature |
SignatureExpression.getFunctionSignature()
Returns the function signature.
|
FunctionSignature |
MethodExpression.getFunctionSignature() |
FunctionSignature |
FunctionExpression.getFunctionSignature()
Returns the function signature.
|
FunctionSignature |
FunctionAst.getFunctionSignature() |
FunctionSignature |
CompoundAssignmentExpression.getFunctionSignature()
Returns the function signature.
|
FunctionSignature |
ThisConstructorExpression.getSignature()
Returns the constructor signature.
|
FunctionSignature |
SuperConstructorExpression.getSignature()
Returns the constructor signature.
|
FunctionSignature |
RecordConstructorExpression.getSignature()
Returns the constructor signature.
|
FunctionSignature |
FunctionCallExpression.getSignature()
Returns the function signature.
|
Constructor and Description |
---|
CompoundAssignmentExpression(ASTInfo info,
Type returnType,
Expression leftExpression,
Expression rightExpression,
FunctionSignature signature) |
FunctionExpression(ASTInfo info,
ClosureType returnType,
FunctionSignature functionSignature)
Creates new instance of
FunctionExpression . |
MethodExpression(ASTInfo astInfo,
Expression recordExpression,
ClosureType signatureType,
FunctionSignature signature,
boolean dynamicDispatch,
boolean isSuper)
Creates new instance of
MethodExpression . |
RecordConstructorExpression(ASTInfo info,
RecordType type,
FunctionSignature signature,
List<Expression> arguments)
Constructs a new record constructor expression.
|
SuperConstructorExpression(ASTInfo info,
FunctionSignature signature)
Constructs a new super record constructor invocation expression
with no arguments.
|
SuperConstructorExpression(ASTInfo info,
FunctionSignature signature,
List<Expression> arguments)
Constructs a new super record constructor invocation expression.
|
ThisConstructorExpression(ASTInfo info,
FunctionSignature signature,
List<Expression> arguments)
Constructs a new "this" record constructor invocation expression.
|
Modifier and Type | Method and Description |
---|---|
Object |
RecordHolder.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments)
Executes method with parameters.
|
Object |
MockRecordHolder.executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments) |
Modifier and Type | Method and Description |
---|---|
Collection<FunctionSignature> |
NamespaceModel.getLocalSignaturesForName(String name)
Returns the local function signatures for given name.
|
Collection<FunctionSignature> |
BasicModulePart.getLocalSignaturesForName(String name) |
Collection<FunctionSignature> |
BasicModule.getLocalSignaturesForName(String name) |
Collection<FunctionSignature> |
NamespaceModel.getSignatures()
Returns function signatures defined in this namespace.
|
Collection<FunctionSignature> |
BasicModulePart.getSignatures() |
Collection<FunctionSignature> |
BasicModule.getSignatures() |
Collection<FunctionSignature> |
NamespaceModel.getVisibleSignatures()
Returns a collection of all visible function signatures.
|
Collection<FunctionSignature> |
AbstractNamespace.getVisibleSignatures() |
Modifier and Type | Method and Description |
---|---|
void |
NamespaceModel.addSignature(FunctionSignature signature)
Registers a function signature in this namespace.
|
void |
BasicModulePart.addSignature(FunctionSignature signature) |
void |
BasicModule.addSignature(FunctionSignature signature) |
Modifier and Type | Method and Description |
---|---|
FunctionSignature |
JavaOperation.getSignature()
Returns the operation signature.
|
Modifier and Type | Method and Description |
---|---|
String |
CustomCompileToJavaOperation.getCompiledToJavaName(FunctionSignature signature) |
SrcExpression |
CustomCompileToJavaOperation.getSrcExpression(FunctionSignature signature) |
Constructor and Description |
---|
ExpressionOperation(FunctionSignature signature,
Expression expression,
ExpressionOrigin origin)
Creates new instance of
ExpressionOperation . |
JavaOperation(String className,
String methodName,
FunctionSignature signature)
Creates new instance of
JavaOperation . |
Modifier and Type | Method and Description |
---|---|
static ClassType |
ParserUtil.getMethodDeclarationType(FunctionSignature method,
ClassType classType)
Returns the type where the method is declared.
|
Modifier and Type | Method and Description |
---|---|
FunctionSignature |
FunctionSignature.Builder.build()
Builds instance of
FunctionSignature with the parameters specified in this
builder. |
FunctionSignature |
FunctionSignature.clone() |
FunctionSignature |
SignatureMapping.getSignature() |
Modifier and Type | Method and Description |
---|---|
static List<FunctionSignature> |
FunctionSignatures.filterByVisibility(Collection<FunctionSignature> signatures,
Visibility visibility) |
Modifier and Type | Method and Description |
---|---|
boolean |
FunctionSignature.isSame(FunctionSignature signature)
Returns true if this signature is same as the other one.
|
SignatureMapping |
SignatureMatcher.match(FunctionSignature signature)
Returns signature mapping.
|
SignatureMapping |
ObjectSignatureMatcher.match(FunctionSignature signature) |
SignatureMapping |
NamedArgsSignatureMatcher.match(FunctionSignature signature) |
SignatureMapping |
ExtensionMethodSignatureMatcher.match(FunctionSignature signature) |
SignatureMapping |
ComplexSignatureMatcher.match(FunctionSignature signature) |
SignatureMapping |
ClosureTypeSignatureMatcher.match(FunctionSignature signature) |
Modifier and Type | Method and Description |
---|---|
static List<FunctionSignature> |
FunctionSignatures.filterByVisibility(Collection<FunctionSignature> signatures,
Visibility visibility) |
static Set<SignatureMapping> |
FunctionSignatures.filterSignatures(Collection<FunctionSignature> signatures,
SignatureMatcher matcher) |
Modifier and Type | Method and Description |
---|---|
FunctionSignature |
ClassType.getMethodBySignature(String signatureString)
Returns a method by a given signature string.
|
Modifier and Type | Method and Description |
---|---|
List<FunctionSignature> |
RecordType.getConstructors()
Returns the unmodifiable list of record constructors.
|
List<FunctionSignature> |
RecordType.getConstructors(Visibility visibility)
Returns the unmodifiable list of record constructors
having at least the given visibility.
|
Collection<FunctionSignature> |
NamedClassType.getLocalMethods() |
Collection<FunctionSignature> |
ClassType.getLocalMethods()
Returns locally defined methods (methods defined in this type, not inherited).
|
Collection<FunctionSignature> |
ClassNamespaceModel.getLocalSignaturesForName(String name) |
Collection<FunctionSignature> |
RecordType.getLocalStaticMethods() |
Collection<FunctionSignature> |
ClassType.getLocalStaticMethods()
Returns locally defined static methods (methods defined in this type, not inherited).
|
Collection<FunctionSignature> |
ClassType.getMethods()
Returns all methods (including inherited).
|
Collection<FunctionSignature> |
ClassType.getMethodsForName(String name,
Type[] paramTypes,
Visibility visibility)
Returns a collection of methods with the given name and parameter types.
|
Collection<FunctionSignature> |
ClassType.getMethodsForName(String name,
Visibility visibility)
Returns collection of methods with a given name.
|
Collection<FunctionSignature> |
ClassType.getOverriddenMethodsBySignature(String signatureString)
Returns a collection of overridden methods by a given signature.
|
Collection<FunctionSignature> |
ClassNamespaceModel.getSignatures() |
Collection<FunctionSignature> |
RecordType.getStaticMethods() |
Collection<FunctionSignature> |
ClassType.getStaticMethods()
Returns all static methods (including inherited).
|
Collection<FunctionSignature> |
RecordType.getStaticMethodsForName(String name,
Visibility visibility) |
Collection<FunctionSignature> |
ClassType.getStaticMethodsForName(String name,
Visibility visibility)
Returns collection of static methods with a given name.
|
Modifier and Type | Method and Description |
---|---|
void |
ClassNamespaceModel.addSignature(FunctionSignature signature) |
Modifier and Type | Method and Description |
---|---|
void |
RecordType.setDeclaredConstructors(Collection<FunctionSignature> constructors)
Sets the record constructors (declared by user).
|
void |
NamedClassType.setMethods(Collection<FunctionSignature> methods)
Sets methods.
|
void |
RecordType.setStaticMethods(Collection<FunctionSignature> methods)
Sets static methods.
|
Modifier and Type | Method and Description |
---|---|
FunctionSignature |
RoleUnitFunctionGenerator.generateModel() |
Modifier and Type | Method and Description |
---|---|
String |
RoleUnitFunctionOperation.getCompiledToJavaName(FunctionSignature signature) |
SrcExpression |
RoleUnitFunctionOperation.getSrcExpression(FunctionSignature signature) |
Constructor and Description |
---|
RoleUnitFunctionOperation(FunctionSignature signature,
String methodName,
boolean mapVariant)
Constructs a new operation.
|
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.