com.wewebu.expression.language
Class OwExprPropertySymbol

java.lang.Object
  extended by com.wewebu.expression.language.OwExprSymbol
      extended by com.wewebu.expression.language.OwExprPropertySymbol

public class OwExprPropertySymbol
extends OwExprSymbol

Property symbols represent symbol table recordings of property pointing symbols in the expressions.

object.pro Creates two recursive property symbols for the object and pro identifiers

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


Field Summary
 
Fields inherited from class com.wewebu.expression.language.OwExprSymbol
m_parent
 
Constructor Summary
OwExprPropertySymbol(OwExprSymbol parent_p, String name_p, OwExprType[] types_p)
           
 
Method Summary
 void forceSymbolMatchInScope()
          Informs this symbol that it should be always matched by matches(OwExprScope)
 OwExprValue getValue(OwExprScope scope_p)
           
 boolean matches(OwExprScope scope_p)
          A match method used to check the validity of symbols for certain scopes.
Can be used to discover symbol and related expressions validity before evaluation.
 void setSymbolScope(OwExprSymbolScope symbolScope_p)
           
protected  void toPrettyPrintString(StringBuffer sb_p, StringBuffer tabs_p)
          Pretty-print utility
 
Methods inherited from class com.wewebu.expression.language.OwExprSymbol
addAnonymousSymbol, addFunctionSymbol, addPropertySymbol, getName, getSymbol, getSymbolFQN, getSymbolTable, getType, issueRuntimeSymbolName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwExprPropertySymbol

public OwExprPropertySymbol(OwExprSymbol parent_p,
                            String name_p,
                            OwExprType[] types_p)
Method Detail

getValue

public final OwExprValue getValue(OwExprScope scope_p)
                           throws OwExprEvaluationException
Parameters:
scope_p - the top level scope on which this function is evaluated.
Returns:
the value of the property represented by this symbol as solved on the given scope
Throws:
OwExprEvaluationException

toPrettyPrintString

protected void toPrettyPrintString(StringBuffer sb_p,
                                   StringBuffer tabs_p)
Pretty-print utility

Overrides:
toPrettyPrintString in class OwExprSymbol
Parameters:
sb_p -
tabs_p -

setSymbolScope

public final void setSymbolScope(OwExprSymbolScope symbolScope_p)
Parameters:
symbolScope_p - parent symbol scope

forceSymbolMatchInScope

public void forceSymbolMatchInScope()
Informs this symbol that it should be always matched by matches(OwExprScope)


matches

public boolean matches(OwExprScope scope_p)
                throws OwExprEvaluationException
A match method used to check the validity of symbols for certain scopes.
Can be used to discover symbol and related expressions validity before evaluation.

Specified by:
matches in class OwExprSymbol
Parameters:
scope_p - a scope to search the symbol on
Returns:
true if this symbol is valid for the given scope
Throws:
OwExprEvaluationException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.