use of php.runtime.memory.StringBuilderMemory in project jphp by jphp-compiler.
the class WrapInvoker method getDescription.
@Signature
public Memory getDescription(Environment env, Memory... args) {
StringBuilderMemory sb = new StringBuilderMemory();
sb.append(invoker.getName());
sb.append("(");
int i = 0;
if (invoker.getParameters() == null) {
sb.append("<internal>");
} else
for (ParameterEntity param : invoker.getParameters()) {
if (i != 0)
sb.append(", ");
sb.append(param.getSignatureString());
i++;
}
sb.append(")");
return sb;
}
Aggregations