@Nonnull public JSInvocation invoke () { return new JSInvocation (this); }
@Nonnull public JSInvocation invoke () { return new JSInvocation (this); }
@Nonnull public JSInvocation invoke () { return new JSInvocation (this); }
@Nonnull public static JSInvocation invoke (@Nonnull final JSMethod aMethod) { return new JSInvocation ((IJSExpression) null, aMethod); }
/** * Generates a static method invocation. * * @param aMethod * Method to invoke * @return The created {@link JSInvocation} */ @Nonnull public final JSInvocation staticInvoke (@Nonnull final JSMethod aMethod) { return new JSInvocation (this, aMethod); }
@Nonnull public static JSInvocation invoke (@Nonnull final JSMethod aMethod) { return new JSInvocation ((IJSExpression) null, aMethod); }
/** * Generates a static method invocation. * * @param aMethod * Method to invoke * @return The created {@link JSInvocation} */ @Nonnull public final JSInvocation staticInvoke (@Nonnull final JSMethod aMethod) { return new JSInvocation (this, aMethod); }
@Nonnull public static JSInvocation invoke (@Nullable final IJSExpression aLhs, @Nonnull final JSMethod aMethod) { return new JSInvocation (aLhs, aMethod); }
@Nonnull public static JSInvocation invoke (@Nullable final IJSExpression aLhs, @Nonnull final JSMethod aMethod) { return new JSInvocation (aLhs, aMethod); }
@Nonnull public JSInvocation invoke () { if (m_aObject instanceof AbstractJSClass) return new JSInvocation ((AbstractJSClass) m_aObject, name ()); if (m_aObject instanceof IJSExpression) return new JSInvocation ((IJSExpression) m_aObject, name ()); throw new IllegalStateException ("The present object " + m_aObject + " cannot be invoked (at the moment)"); }
@Nonnull public JSInvocation invoke () { if (m_aObject instanceof AbstractJSClass) return new JSInvocation ((AbstractJSClass) m_aObject, name ()); if (m_aObject instanceof IJSExpression) return new JSInvocation ((IJSExpression) m_aObject, name ()); throw new IllegalStateException ("The present object " + m_aObject + " cannot be invoked (at the moment)"); }
@Nonnull public static JSInvocation invoke (@Nullable final IJSExpression aLhs, @Nonnull @Nonempty final String sMethod) { return new JSInvocation (aLhs, sMethod); }
@Nonnull public static JSInvocation invoke (@Nonnull final JSVar aVar) { return new JSInvocation ((IJSExpression) null, aVar.name ()); }
/** * Generates a static method invocation. * * @param sMethod * Method to invoke * @return The created {@link JSInvocation} */ @Nonnull public final JSInvocation staticInvoke (@Nonnull @Nonempty final String sMethod) { return new JSInvocation (this, sMethod); }
@Nonnull @CodingStyleguideUnaware public static JSInvocation _new (@Nonnull final AbstractJSType aType) { return new JSInvocation (aType); }
@Nonnull public static JSInvocation invoke (@Nullable final IJSExpression aLhs, @Nonnull @Nonempty final String sMethod) { return new JSInvocation (aLhs, sMethod); }
@Nonnull public static JSInvocation invoke (@Nonnull @Nonempty final String sMethod) { return new JSInvocation ((IJSExpression) null, sMethod); }
@Nonnull @CodingStyleguideUnaware public static JSInvocation _new (@Nonnull final AbstractJSType aType) { return new JSInvocation (aType); }
@Nonnull public JSInvocation invoke (@Nonnull @Nonempty final String sFunctionName) { final JSInvocation aInvocation = new JSInvocation (sFunctionName); return addStatement (aInvocation); }
@Nonnull public JSInvocation invoke (@Nonnull @Nonempty final String sFunctionName) { final JSInvocation aInvocation = new JSInvocation (sFunctionName); return addStatement (aInvocation); }