|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.codegen.JavaDeclaration
public class JavaDeclaration
A return action that assigns the value of the expression to a variable supplied by the caller
Constructor Summary | |
---|---|
JavaDeclaration(Class theClass,
String varName)
Create a JavaDeclaration |
Method Summary | |
---|---|
Class |
getVariableClass()
Get the class of the variable |
String |
getVariableName()
Get the name of the variable holding the result |
String |
output(CompilerService compiler,
String expression)
Generate the return text |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaDeclaration(Class theClass, String varName)
theClass
- the class of variable to be declared, currently always boolean.classvarName
- the name of the variable to be declaredMethod Detail |
---|
public Class getVariableClass()
public String output(CompilerService compiler, String expression)
output
in interface ReturnAction
compiler
- the compiler serviceexpression
- the Java expression that computes the return value
public String getVariableName()
getVariableName
in interface ReturnAction
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |