@Name("BadFunctionCallException") public class BadFunctionCallException extends LogicException { public BadFunctionCallException(Environment env) { super(env); } public BadFunctionCallException(Environment env, ClassEntity clazz) { super(env, clazz); } }
@Override @Signature public Memory current(Environment env, Memory... args) { return Memory.NULL; }
@Name("OverflowException") public class OverflowException extends RuntimeException { public OverflowException(Environment env) { super(env); } public OverflowException(Environment env, ClassEntity clazz) { super(env, clazz); } }
@Name("stdClass") public class StdClass extends BaseObject { public StdClass(Environment env, ClassEntity clazz) { super(env, clazz); } public StdClass(Environment env) { super(env); } }
@Override @Signature public Memory key(Environment env, Memory... args) { return Memory.NULL; }
@Override @Signature public Memory valid(Environment env, Memory... args) { return Memory.FALSE; }
@Name("OutOfBoundsException") public class OutOfBoundsException extends RuntimeException { public OutOfBoundsException(Environment env) { super(env); } public OutOfBoundsException(Environment env, ClassEntity clazz) { super(env, clazz); } }
@Name("php\\concurrent\\TimeoutException") public static class TimeoutException extends JavaException { public TimeoutException(Environment env, Throwable throwable) { super(env, throwable); } public TimeoutException(Environment env, ClassEntity clazz) { super(env, clazz); } }
@Name("php\\lang\\NotImplementedException") public static class NotImplementedException extends BaseException { public NotImplementedException(Environment env) { super(env); } public NotImplementedException(Environment env, ClassEntity clazz) { super(env, clazz); } } }
@Name("UnderflowException") public class UnderflowException extends RuntimeException { public UnderflowException(Environment env) { super(env); } public UnderflowException(Environment env, ClassEntity clazz) { super(env, clazz); } }
@Ignore public interface IComparableObject<T extends IObject> { boolean __equal(T iObject); boolean __identical(T iObject); boolean __greater(T iObject); boolean __greaterEq(T iObject); boolean __smaller(T iObject); boolean __smallerEq(T iObject); }
@Name("RecursiveIterator") public interface RecursiveIterator extends Iterator { @Signature public Memory getChildren(Environment env, Memory... args); @Signature public Memory hasChildren(Environment env, Memory... args); }
@Name("OutOfRangeException") public class OutOfRangeException extends RuntimeException { public OutOfRangeException(Environment env) { super(env); } public OutOfRangeException(Environment env, ClassEntity clazz) { super(env, clazz); } }
@Signature public Memory getClosureThis(Environment env, Memory... args){ IObject instance = getInstance(); if (instance == null || !(instance instanceof Closure)) return Memory.NULL; else { return ((Closure) instance).getSelf(); } }
@Signature public Memory inNamespace(Environment env, Memory... args){ if (getClosureEntity() != null) return Memory.FALSE; return getEntity().getNamespaceName().isEmpty() ? Memory.FALSE : Memory.TRUE; }
@Signature public Memory getNamespaceName(Environment env, Memory... args){ if (getClosureEntity() != null) return Memory.FALSE; return new StringMemory(getEntity().getNamespaceName()); }
@Signature public Memory getShortName(Environment env, Memory... args){ if (getClosureEntity() != null) return Memory.NULL; return new StringMemory(getEntity().getShortName()); }
@Signature public Memory getDocComment(Environment env, Memory... args){ if (getClosureEntity() != null) return Memory.NULL; if (getEntity().getDocComment() == null) return Memory.NULL; return new StringMemory(getEntity().getDocComment().toString()); }
@FastMethod @Signature({ @Arg("funcName") }) public static Memory functionModule(Environment env, Memory... args) { FunctionEntity entity = env.fetchFunction(args[0].toString()); if (entity != null && entity.getModule() != null) { return ObjectMemory.valueOf(new WrapModule(env, entity.getModule())); } return Memory.NULL; }
@Signature public Memory getPosition(Environment env, Memory... args){ if (getClosureEntity() != null) return LongMemory.valueOf(getClosureEntity().getTrace().getStartPosition() + 1); return LongMemory.valueOf(getEntity().getTrace().getStartPosition() + 1); }