/** * Returns the class extended by this class. */ @Override @Nullable @CodingStyleguideUnaware public AbstractJSClass _extends () { return m_aSuperClass; }
/** * Return the block to be executed by the "then" branch * * @return Then block */ @Nonnull @CodingStyleguideUnaware public JSBlock _then () { return m_aThen; }
/** * Gets the super class of this class. * * @return Returns the JClass representing the superclass of the entity (class * or interface) represented by this {@link AbstractJSClass}. Even if * no super class is given explicitly or this {@link AbstractJSClass} * is not a class, this method still returns {@link AbstractJSClass} * for {@link Object}. If this JClass represents {@link Object}, * return null. */ @Nullable @CodingStyleguideUnaware public abstract AbstractJSClass _extends ();
/** instanceof */ @Nonnull @CodingStyleguideUnaware IJSExpression _instanceof (@Nonnull AbstractJSType aType);
@CodingStyleguideUnaware ("logger too visible by purpose") public class LoggingTransformErrorListener extends AbstractTransformErrorListener
@Nonnull @CodingStyleguideUnaware public static JSInvocation _new (@Nonnull final AbstractJSType aType) { return new JSInvocation (aType); }
/** * @return A "new type" invocation object */ @Nonnull @CodingStyleguideUnaware public final JSInvocation _new () { return JSExpr._new (this); }
@Nonnull @CodingStyleguideUnaware public JSCase _default () { if (m_aDefaultCase == null) m_aDefaultCase = new JSCase (null, true); return m_aDefaultCase; }
@Override @Nonnull @CodingStyleguideUnaware public final AbstractJSExpression _instanceof (@Nonnull final AbstractJSType aType) { return JSOp._instanceof (this, aType); }
@Nonnull @CodingStyleguideUnaware public JSBlock _continue () { return _continue (null); }
@Nonnull @CodingStyleguideUnaware public JSCase _case (@Nonnull final IJSExpression aLabel) { final JSCase aCase = new JSCase (aLabel); m_aCases.add (aCase); return aCase; }
/** * Create a block to be executed by "else" branch * * @return Newly generated else block */ @Nonnull @CodingStyleguideUnaware public JSBlock _else () { if (m_aElse == null) m_aElse = new JSBlock (); return m_aElse; }
/** * Create a break statement and add it to this block */ @Nonnull @CodingStyleguideUnaware public JSBlock _break () { return _break (null); }
@Nonnull @CodingStyleguideUnaware public JSCatchBlock _catch () { if (m_aCatch == null) m_aCatch = new JSCatchBlock (); return m_aCatch; }
@Nonnull @CodingStyleguideUnaware public JSBlock _finally () { if (m_aFinally == null) m_aFinally = new JSBlock (); return m_aFinally; }
@Nonnull @CodingStyleguideUnaware public static JSOpBinary _instanceof (@Nonnull final IJSExpression aLeft, @Nonnull final AbstractJSType aRight) { return new JSOpBinary (aLeft, " instanceof ", aRight); }
@CodingStyleguideUnaware ("logger too visible by purpose") public class LoggingSAXErrorHandler extends AbstractSAXErrorHandler
/** * This class extends the specified class. * * @param aSuperClass * Superclass for this class * @return This class */ @Nonnull @CodingStyleguideUnaware public JSDefinedClass _extends (@Nonnull final AbstractJSClass aSuperClass) { m_aSuperClass = ValueEnforcer.notNull (aSuperClass, "SuperClass"); return this; }
@CodingStyleguideUnaware protected final Logger m_aLogger = LoggerFactory.getLogger (getClass ());
@Nonnull @CodingStyleguideUnaware public JSBlock _break (@Nullable final JSLabel aLabel) { addStatement (new JSBreak (aLabel)); return this; }