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)
-
EXPR
-
-
FUNCTION_CALL
-
-
LITERAL
-
-
NUMBER
-
-
VARIABLE_REFERENCE
-
-
evaluate(Node, ProcessorState)
- Evalutes this PrimaryExpr using the given Node as
the context and ProcessorState
-
getExprType()
- Returns the type of Expr this Expr represents
-
getLiteral()
- Returns the literal of this PrimaryExpr, or null if no literal
this PrimaryExpr does not represent a literal.
-
getNumber()
-
-
getType()
- Retrieves the type of this PrimaryExpr
-
toString()
- Returns the String representation of this PrimaryExpr
VARIABLE_REFERENCE
public static final short VARIABLE_REFERENCE
EXPR
public static final short EXPR
LITERAL
public static final short LITERAL
NUMBER
public static final short NUMBER
FUNCTION_CALL
public static final short FUNCTION_CALL
getExprType
public short getExprType()
- Returns the type of Expr this Expr represents
- Returns:
- the type of Expr this Expr represents
getType
public short getType()
- Retrieves the type of this PrimaryExpr
- Returns:
- the type of this PrimaryExpr
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
getNumber
public double getNumber()
evaluate
public ExprResult evaluate(Node context,
ProcessorState ps) throws InvalidExprException
- Evalutes this PrimaryExpr using the given Node as
the context and ProcessorState
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