/** * Tells if <code>this</code> represents an expression of the stated type. * * @param pType One of the <code>ExpressionType.???</code> constants * defined by the interface <code>Expression</code>. * * @return This implementation always returns false. <code>JSOM</code> * types that implement the representation of an expression must * overwrite this method. */ public bool isExpressionType( ExpressionType pType) { return false; }
/** * Returns a message for the cases where an <code>Expression</code> remains * unhandled because the expression type is not supported. * * @param pExpressionType The unsupported expression type. * * @return A message that stated the unsupported expression. */ public static String getUnsupportedExpressionTypeMessage( ExpressionType pExpressionType) { return UNMARSHALLER_MESSAGES.getResource( "UNSUPPORTED_EXPRESSION_TYPE", new String[] {pExpressionType.ToString()}); }
/** * Constructor. * * @param pTree The root or start node of the expression. * @param pExpressionType One of the constants defined by <code> * ExpressionType</code> that matches the * appropriate primary expression. * @param pTokenRewriteStream The token stream the token of the stated * tree node belongs to. */ public AST2PrimaryExpression( AST2JSOMTree pTree, ExpressionType pExpressionType, TokenRewriteStream pTokenRewriteStream) : base(pTree, pExpressionType, pTokenRewriteStream) { }