com.wewebu.expression.language
Interface OwExprPrimaryPrefix

All Known Implementing Classes:
OwExprArgumentsSuffix, OwExprArraySelectorSuffix, OwExprBooleanLiteral, OwExprFloatingPointLiteral, OwExprIntegerLiteral, OwExprLiteral, OwExprNullLiteral, OwExprPrimaryPrefixExpression, OwExprScopeSelector, OwExprStaticArray, OwExprStringLiteral

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


Method Summary
 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.
 

Method Detail

regressToFunction

OwExprFunctionSymbol regressToFunction()
                                       throws OwExprTypeMissmatchException
Forces this primary prefix symbol to a function.

Returns:
the function symbol of this expression
Throws:
OwExprTypeMissmatchException - if a type mismatch is detected during function symbol creation

regressToPorperty

OwExprPropertySymbol regressToPorperty()
                                       throws OwExprTypeMissmatchException
Forces this primary prefix symbol to a property.

Returns:
the property symbol of this expression
Throws:
OwExprTypeMissmatchException - if a type mismatch is detected during property symbol creation

regressToScope

OwExprSymbolScope regressToScope()
                                 throws OwExprTypeMissmatchException
Forces this primary prefix to a scope symbol.

Returns:
the scope symbol of this expression
Throws:
OwExprTypeMissmatchException - if a type mismatch is detected during scope symbol creation

expression

OwExprExpression expression()
Returns:
the expression represented by this primary prefix


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.