Search in sources :

Example 1 with StringBuilderMemory

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;
}
Also used : ParameterEntity(php.runtime.reflection.ParameterEntity) StringBuilderMemory(php.runtime.memory.StringBuilderMemory)

Aggregations

StringBuilderMemory (php.runtime.memory.StringBuilderMemory)1 ParameterEntity (php.runtime.reflection.ParameterEntity)1