public interface OwExprPrimaryPrefix
Primary language expressions are made from a prefix construction which can be
a literal, a bracketed expression (egg. (a-b)
) or an identifier followed
by any number of suffixes (zero or more).
Suffixes can be function arguments (someFunction(1,2,'aaa')
), array
selectors (someProperty[2][4]
) or scope selectors(employee.name.length
)).
Suffixes are custom implemented and represent prefixes for their subsequent suffixes.
Symbols that represent the primary expression prefixes are regressed after suffixes are parsed to
their corresponding semantics (function,property or scope).
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Method and Description |
---|---|
OwExprExpression |
expression() |
OwExprFunctionSymbol |
regressToFunction()
Forces this primary prefix symbol to a function.
|
OwExprPropertySymbol |
regressToPorperty()
Forces this primary prefix symbol to a property.
|
OwExprSymbolScope |
regressToScope()
Forces this primary prefix to a scope symbol.
|
OwExprFunctionSymbol regressToFunction() throws OwExprTypeMissmatchException
OwExprTypeMissmatchException
- if a type mismatch is detected during function symbol creationOwExprPropertySymbol regressToPorperty() throws OwExprTypeMissmatchException
OwExprTypeMissmatchException
- if a type mismatch is detected during property symbol creationOwExprSymbolScope regressToScope() throws OwExprTypeMissmatchException
OwExprTypeMissmatchException
- if a type mismatch is detected during scope symbol creationOwExprExpression expression()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.