com.wewebu.expression.language
Class OwExprConstantSymbol

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

public class OwExprConstantSymbol
extends OwExprSymbol

Constant symbols represent symbol table recordings of fixed values. They are associated with literals.

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
OwExprConstantSymbol(OwExprLiteral literal_p, String name_p, OwExprType[] types_p)
          Constructor
 
Method Summary
 OwExprLiteral getLiteral()
           
 OwExprValue getValue()
           
 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.
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

OwExprConstantSymbol

public OwExprConstantSymbol(OwExprLiteral literal_p,
                            String name_p,
                            OwExprType[] types_p)
Constructor

Parameters:
literal_p - the associated literal
name_p - name of the symbol
types_p - the symbol possible types
Method Detail

getValue

public final OwExprValue getValue()
Returns:
the OwExprValue associated with this symbol's literal

toPrettyPrintString

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

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

getLiteral

public final OwExprLiteral getLiteral()
Returns:
the literal associated with this constant symbol

matches

public boolean matches(OwExprScope scope_p)
Description copied from class: OwExprSymbol
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 -
Returns:
always true


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.