/** * Registers this EllaScript object within the given execution context. * * @param ctx the execution context to register this object in. */ public static void registerInContext(Context ctx) { NullProto.registerInContext(ctx); ctx.registerProto(OBJECT_ID, NullProto.OBJECT_ID); if (!ctx.hasObject(OBJECT_ID)) { ctx.registerObject(new NullImpl()); } }
public static void registerInContext(Context ctx) { Base.registerInContext(ctx); ctx.registerProto(OBJECT_ID, Base.OBJECT_ID); ctx.registerObject(new NullProto()); }