|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HasFunctionAddress
A placeholder for an object which has a reference to a function address, but which may not be realized yet. This is particularly important for forward-referenced functions. For example:
f() is refered to prior to its definition. Therefore, the getFunctionAddress() call within the BEGIN block will not return a meaningful address. However, anytime after f(x) is defined, getFunctionAddress() will return the correct function address.BEGIN { f(3) } function f(x) { print x*x }
Method Summary | |
---|---|
Address |
getFunctionAddress()
Get an address to the tuple where this function is defined. |
Method Detail |
---|
Address getFunctionAddress()
If getFunctionAddress() is called prior to defining the function address (prior to parsing the function block), the result is undefined. (As of this writing, a NullPointerException is thrown.)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |