public class OwExprScopeSelector extends OwExprExpression implements OwExprPrimaryPrefix
OwExprScopeSelector.
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
m_errorTable, m_symbolTable, m_typeError
Constructor and Description |
---|
OwExprScopeSelector(OwExprSymbolTable symTable_p,
OwExprErrorTable errorTable_p,
String scopeMemberName_p) |
OwExprScopeSelector(OwExprSymbolTable symTable_p,
OwExprErrorTable errorTable_p,
String scopeMemberName_p,
OwExprPrimaryPrefix prefix_p) |
Modifier and Type | Method and Description |
---|---|
OwExprValue |
evaluate(OwExprScope scope_p)
Evaluates this expression on the
OwExprScope (scope) provided as argument. |
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.
|
String |
toString() |
OwExprExpressionType |
type()
Type check method.
|
errCount, evaluate, evaluate, getErrorTable, getSymbol, getSymbolTable, hasErrors, initType, symbolsVisibleInScopes
public OwExprScopeSelector(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p, String scopeMemberName_p)
public OwExprScopeSelector(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p, String scopeMemberName_p, OwExprPrimaryPrefix prefix_p)
public OwExprValue evaluate(OwExprScope scope_p) throws OwExprEvaluationException
OwExprExpression
OwExprScope
(scope) provided as argument.evaluate
in class OwExprExpression
scope_p
- external scope to be used during evaluationOwExprEvaluationException
- in case of evaluation failurepublic OwExprExpressionType type() throws OwExprTypeMissmatchException
OwExprExpression
OwExprExpression.m_typeError
should
be set to true
type
in class OwExprExpression
OwExprTypeMissmatchException
- if type errors are encountered during type computationpublic OwExprPropertySymbol regressToPorperty() throws OwExprTypeMissmatchException
OwExprPrimaryPrefix
regressToPorperty
in interface OwExprPrimaryPrefix
OwExprTypeMissmatchException
- if a type mismatch is detected during property symbol creationpublic OwExprSymbolScope regressToScope() throws OwExprTypeMissmatchException
OwExprPrimaryPrefix
regressToScope
in interface OwExprPrimaryPrefix
OwExprTypeMissmatchException
- if a type mismatch is detected during scope symbol creationpublic OwExprFunctionSymbol regressToFunction() throws OwExprTypeMissmatchException
OwExprPrimaryPrefix
regressToFunction
in interface OwExprPrimaryPrefix
OwExprTypeMissmatchException
- if a type mismatch is detected during function symbol creationpublic OwExprExpression expression()
expression
in interface OwExprPrimaryPrefix
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.