| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private boolean | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | FunctionAvailableCall(QName fname, List<Expression> arguments)
Constructs a FunctionAvailableCall FunctionCall. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | evaluateAtCompileTime()
Overrides com. Returns an object representing the compile-time evaluation of an expression. |
| public boolean | getResult()
Reports on whether the function specified in the argument to xslt function 'function-available' was found. |
| private boolean | hasMethods()
for external java functions only: reports on whether or not the specified method is found in the specifed class. |
| private boolean | |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Calls to 'function-available' are resolved at compile time since the namespaces declared in the stylsheet are not available at run time. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Argument of function-available call must be literal, typecheck returns the type of function-available to be boolean. |
| _arg | back to summary |
|---|---|
| private Expression _arg | |
| _isFunctionAvailable | back to summary |
|---|---|
| private boolean _isFunctionAvailable | |
| _nameOfFunct | back to summary |
|---|---|
| private String _nameOfFunct | |
| _namespaceOfFunct | back to summary |
|---|---|
| private String _namespaceOfFunct | |
| FunctionAvailableCall | back to summary |
|---|---|
| public FunctionAvailableCall(QName fname, List<Expression> arguments) Constructs a FunctionAvailableCall FunctionCall. Takes the function name qname, for example, 'function-available', and a list of arguments where the arguments must be instances of LiteralExpression. | |
| evaluateAtCompileTime | back to summary |
|---|---|
| public Object evaluateAtCompileTime() Overrides com. Returns an object representing the compile-time evaluation of an expression. We are only using this for function-available and element-available at this time. | |
| getResult | back to summary |
|---|---|
| public boolean getResult() Reports on whether the function specified in the argument to xslt function 'function-available' was found. | |
| hasMethods | back to summary |
|---|---|
| private boolean hasMethods() for external java functions only: reports on whether or not the specified method is found in the specifed class. | |
| isInternalNamespace | back to summary |
|---|---|
| private boolean isInternalNamespace() Return true if the namespace uri is null or it is the XSLTC translet uri. | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Calls to 'function-available' are resolved at compile time since the namespaces declared in the stylsheet are not available at run time. Consequently, arguments to this function must be literals. | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Argument of function-available call must be literal, typecheck returns the type of function-available to be boolean. | |