com.wewebu.expression.language
Class OwExprAnonymousSymbol

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

public class OwExprAnonymousSymbol
extends OwExprSymbol

Anonymous symbols represent evaluation time symbols used to check expression return type consistency and array element type consistency.
Examples :

(a-b).days Creates an anonymous symbol for expression a-b
arrayObject[1][2] Creates 2 anonymous symbols for expressions arrayObject[1] and arrayObject[1][2].
Further references to array first and second array dimensions will be type checked against this symbols.

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
OwExprAnonymousSymbol(OwExprSymbol parent_p, String name_p, OwExprExpressionType type_p)
          Constructor
OwExprAnonymousSymbol(OwExprSymbol parent_p, String name_p, OwExprType type_p)
          Constructor
OwExprAnonymousSymbol(OwExprSymbol parent_p, String name_p, OwExprType[] types_p)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class com.wewebu.expression.language.OwExprSymbol
addAnonymousSymbol, addFunctionSymbol, addPropertySymbol, getName, getSymbol, getSymbolFQN, getSymbolTable, getType, issueRuntimeSymbolName, toPrettyPrintString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwExprAnonymousSymbol

public OwExprAnonymousSymbol(OwExprSymbol parent_p,
                             String name_p,
                             OwExprExpressionType type_p)
Constructor


OwExprAnonymousSymbol

public OwExprAnonymousSymbol(OwExprSymbol parent_p,
                             String name_p,
                             OwExprType type_p)
Constructor


OwExprAnonymousSymbol

public OwExprAnonymousSymbol(OwExprSymbol parent_p,
                             String name_p,
                             OwExprType[] types_p)
Constructor

Method Detail

matches

public 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.

Specified by:
matches in class OwExprSymbol
Parameters:
scope_p - a scope to search the symbol on
Returns:
always true (No pre-evaluation match is implemented for anonymous symbols).


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.