All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xsl.PrimaryExpr

com.kvisco.xsl.PrimaryExpr

public class PrimaryExpr
implements Expr
Represents a PrimaryExpr
 from XSLT WD 19990421
 [14] PrimaryExpr ::= VariableReference
                      | '(' Expr ')'
                      | Literal
                      | Number
                      | FunctionCall
 

Author:
Keith Visco (kvisco\@ziplink.net)

Variable Index

 o EXPR
 o FUNCTION_CALL
 o LITERAL
 o NUMBER
 o VARIABLE_REFERENCE

Method Index

 o evaluate(Node, ProcessorState)
Evalutes this PrimaryExpr using the given Node as the context and ProcessorState
 o getExprType()
Returns the type of Expr this Expr represents
 o getLiteral()
Returns the literal of this PrimaryExpr, or null if no literal this PrimaryExpr does not represent a literal.
 o getNumber()
 o getType()
Retrieves the type of this PrimaryExpr
 o toString()
Returns the String representation of this PrimaryExpr

Variables

 o VARIABLE_REFERENCE
 public static final short VARIABLE_REFERENCE
 o EXPR
 public static final short EXPR
 o LITERAL
 public static final short LITERAL
 o NUMBER
 public static final short NUMBER
 o FUNCTION_CALL
 public static final short FUNCTION_CALL

Methods

 o getExprType
 public short getExprType()
Returns the type of Expr this Expr represents

Returns:
the type of Expr this Expr represents
 o getType
 public short getType()
Retrieves the type of this PrimaryExpr

Returns:
the type of this PrimaryExpr
 o getLiteral
 public String getLiteral()
Returns the literal of this PrimaryExpr, or null if no literal this PrimaryExpr does not represent a literal.

Returns:
the literal of this PrimaryExpr
 o getNumber
 public double getNumber()
 o evaluate
 public ExprResult evaluate(Node context,
                            ProcessorState ps) throws InvalidExprException
Evalutes this PrimaryExpr using the given Node as the context and ProcessorState

 o toString
 public String toString()
Returns the String representation of this PrimaryExpr

Returns:
the String representation of this PrimaryExpr

All Packages  Class Hierarchy  This Package  Previous  Next  Index