@Nonnull public static JSAtom lit (@Nonnull final BigInteger aValue) { return new JSAtom (aValue.toString ()); }
@Nonnull public static JSAtom lit (@Nonnull final BigInteger aValue) { return new JSAtom (aValue.toString ()); }
/** * Get the key to be used. May be either a {@link JSAtom} or a * {@link JSStringLiteral}. * * @param sKey * Key to use. May not be <code>null</code>. * @return Never <code>null</code>. */ @Nonnull public final IJSExpression getKey (@Nonnull final String sKey) { if (!m_bForceQuotingNames) { // Don't quote value identifiers if (JSMarshaller.isJSIdentifier (sKey)) return new JSAtom (sKey); } return JSExpr.lit (sKey); }
@Nonnull public JSAssocArray add (@Nonnull final String sKey, @Nonnull final IJSExpression aValue) { if (!m_bForceQuotingNames) { // Don't quote value identifiers if (JSMarshaller.isJSIdentifier (sKey)) return add (new JSAtom (sKey), aValue); } return add (JSExpr.lit (sKey), aValue); }
final IJSExpression aValue = ret.get (new JSAtom (PLUGIN_NAME)); if (aValue != null) return aValue;
final IJSExpression aValue = ret.get (new JSAtom ("extend")); if (aValue != null) return aValue;