|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaitools.jiffle.parser.FunctionInfo
public class FunctionInfo
Used by the FunctionLookup class when servicing lookup requests
from the Jiffle compiler.
| Nested Class Summary | |
|---|---|
static class |
FunctionInfo.Provider
Constants to indicate the runtime provider of a function |
| Constructor Summary | |
|---|---|
FunctionInfo(String jiffleName,
String runtimeName,
FunctionInfo.Provider provider,
boolean isVolatile,
String returnType,
String... argTypes)
Creates a function info object. |
|
| Method Summary | |
|---|---|
String |
getJiffleName()
Gets the name of the function used in Jiffle scripts. |
int |
getNumArgs()
Gets the number of arguments used by the function or #VARARG
for a variable argument function. |
String |
getReturnType()
Gets the function return type. |
String |
getRuntimeExpr()
Gets the Java source for the function provider and name used in the runtime class. |
boolean |
isProxy()
Tests if this is a proxy function, ie. |
boolean |
isVolatile()
Tests if this function is volatile, ie. |
boolean |
matches(String name,
List<String> argTypes)
Tests if this object matches the given name and argument types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionInfo(String jiffleName,
String runtimeName,
FunctionInfo.Provider provider,
boolean isVolatile,
String returnType,
String... argTypes)
jiffleName - name of the function used in Jiffle scriptsruntimeName - Java name used in runtime class sourceprovider - the provider: one of #JIFFLE, #MATH or #PROXYisVolatile - true if the function returns a new value on each
invocation regardless of pixel position (e.g. rand()); false
otherwisereturnType - function return type ("D", "List")argTypes - array of Strings specifying argument types;
null or empty for no-arg functions| Method Detail |
|---|
public String getJiffleName()
public String getRuntimeExpr()
public boolean isVolatile()
true if volatile, false otherwisepublic int getNumArgs()
#VARARG
for a variable argument function.
public boolean isProxy()
x() and
width().
true is a proxy function; false otherwisepublic String getReturnType()
public boolean matches(String name,
List<String> argTypes)
name - function name used in scriptsargTypes - argument type names; null or empty for no-arg functions
true if this object matches; false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||