UNPKG

@finos/legend-graph

Version:
50 lines 2.36 kB
/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference.js'; import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js'; import { type ValueSpecificationVisitor, ValueSpecification } from './ValueSpecification.js'; import type { Function } from '../packageableElements/domain/Function.js'; import { type Hashable } from '@finos/legend-shared'; import type { PropertyReference } from '../packageableElements/domain/PropertyReference.js'; export declare class Expression extends ValueSpecification implements Hashable { classifierGenericType?: GenericTypeReference | undefined; get hashCode(): string; accept_ValueSpecificationVisitor<T>(visitor: ValueSpecificationVisitor<T>): T; } export declare class FunctionExpression extends Expression implements Hashable { functionName: string; parametersValues: ValueSpecification[]; func?: unknown; constructor(functionName: string); get hashCode(): string; accept_ValueSpecificationVisitor<T>(visitor: ValueSpecificationVisitor<T>): T; } export declare class SimpleFunctionExpression extends FunctionExpression implements Hashable { /** * Currently, we don't do function matching * * @discrepancy model */ func?: PackageableElementReference<Function> | undefined; get hashCode(): string; accept_ValueSpecificationVisitor<T>(visitor: ValueSpecificationVisitor<T>): T; } export declare class AbstractPropertyExpression extends FunctionExpression implements Hashable { func: PropertyReference; get hashCode(): string; accept_ValueSpecificationVisitor<T>(visitor: ValueSpecificationVisitor<T>): T; } //# sourceMappingURL=Expression.d.ts.map