public class ZenTypeFunction extends ZenType
| Modifier and Type | Field and Description |
|---|---|
protected ZenType[] |
argumentTypes |
protected ParsedExpression[] |
defaultExpressions |
protected java.util.Map<ZenType,CastingRuleMatchedFunction> |
implementedInterfaces |
protected ZenType |
returnType |
ANY, ANYARRAY, ANYMAP, BOOL, BOOL_TOSTRING, BOOL_TOSTRING_STATIC, BOOL_VALUE, BOOL_VALUEOF, BOOLOBJECT, BYTE, BYTE_TOSTRING, BYTE_TOSTRING_STATIC, BYTE_VALUE, BYTE_VALUEOF, BYTEOBJECT, DOUBLE, DOUBLE_TOSTRING, DOUBLE_TOSTRING_STATIC, DOUBLE_VALUE, DOUBLE_VALUEOF, DOUBLEOBJECT, FLOAT, FLOAT_TOSTRING, FLOAT_TOSTRING_STATIC, FLOAT_VALUE, FLOAT_VALUEOF, FLOATOBJECT, INT, INT_TOSTRING, INT_TOSTRING_STATIC, INT_VALUE, INT_VALUEOF, INTOBJECT, INTRANGE, LONG, LONG_TOSTRING, LONG_TOSTRING_STATIC, LONG_VALUE, LONG_VALUEOF, LONGOBJECT, NULL, NUM_BYTE, NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG, NUM_SHORT, PARSE_BOOL, PARSE_BOOL_OBJECT, PARSE_BYTE, PARSE_BYTE_OBJECT, PARSE_DOUBLE, PARSE_DOUBLE_OBJECT, PARSE_FLOAT, PARSE_FLOAT_OBJECT, PARSE_INT, PARSE_INT_OBJECT, PARSE_LONG, PARSE_LONG_OBJECT, PARSE_SHORT, PARSE_SHORT_OBJECT, SHORT, SHORT_TOSTRING, SHORT_TOSTRING_STATIC, SHORT_VALUE, SHORT_VALUEOF, SHORTOBJECT, STRING, STRING_COMPARETO, VOID| Constructor and Description |
|---|
ZenTypeFunction(ZenType returnType,
java.util.List<ParsedFunctionArgument> arguments) |
ZenTypeFunction(ZenType returnType,
ZenType[] argumentTypes) |
asDumpedObject, binaryExpansion, canCastExpansion, canCastExplicit, canCastImplicit, castExpansion, compileCast, compileCastExpansion, constructExpansionCastingRules, equals, hashCode, isLarge, memberExpansion, parse, read, staticMemberExpansion, toString, trinaryExpansion, unaryExpansionprotected final ZenType returnType
protected final ZenType[] argumentTypes
protected final ParsedExpression[] defaultExpressions
protected final java.util.Map<ZenType,CastingRuleMatchedFunction> implementedInterfaces
public ZenTypeFunction(ZenType returnType, java.util.List<ParsedFunctionArgument> arguments)
public java.lang.String getAnyClassName(IEnvironmentGlobal global)
getAnyClassName in class ZenTypepublic IPartialExpression getMember(ZenPosition position, IEnvironmentGlobal environment, IPartialExpression value, java.lang.String name)
public IPartialExpression getStaticMember(ZenPosition position, IEnvironmentGlobal environment, java.lang.String name)
getStaticMember in class ZenTypepublic IZenIterator makeIterator(int numValues, IEnvironmentMethod methodOutput)
makeIterator in class ZenTypepublic void constructCastingRules(IEnvironmentGlobal environment, ICastingRuleDelegate rules, boolean followCasters)
constructCastingRules in class ZenTypepublic ICastingRule getCastingRule(ZenType type, IEnvironmentGlobal environment)
getCastingRule in class ZenTypepublic int getNumberType()
getNumberType in class ZenTypepublic java.lang.String getSignature()
getSignature in class ZenTypepublic Expression unary(ZenPosition position, IEnvironmentGlobal environment, Expression value, OperatorType operator)
public Expression binary(ZenPosition position, IEnvironmentGlobal environment, Expression left, Expression right, OperatorType operator)
public Expression trinary(ZenPosition position, IEnvironmentGlobal environment, Expression first, Expression second, Expression third, OperatorType operator)
public Expression compare(ZenPosition position, IEnvironmentGlobal environment, Expression left, Expression right, CompareType type)
public Expression call(ZenPosition position, IEnvironmentGlobal environment, Expression receiver, Expression... arguments)
public ZenType[] predictCallTypes(int numArguments)
predictCallTypes in class ZenTypepublic java.lang.Class toJavaClass()
toJavaClass in class ZenTypepublic Expression defaultValue(ZenPosition position)
defaultValue in class ZenTypepublic ZenType getReturnType()
public ZenType[] getArgumentTypes()
public java.lang.String getNameForInterfaceSignature()
getNameForInterfaceSignature in class ZenType