@Nullable public IJSExpression getArgAtIndex (final int nIndex) { return m_aArgs.getAtIndex (nIndex); }
@Nullable public JSVar getParamAtIndex (final int nIndex) { return m_aParams.getAtIndex (nIndex); }
@Nullable public JSVar getParamAtIndex (final int nIndex) { return m_aParams.getAtIndex (nIndex); }
/** * Get the media expression at the specified index. * * @param nExpressionIndex * The index to be retrieved. * @return <code>null</code> if the index is < 0 or too large. */ @Nullable public CSSMediaExpression getMediaExpression (@Nonnegative final int nExpressionIndex) { return m_aMediaExpressions.getAtIndex (nExpressionIndex); }
@Nullable public WebSiteResource getResourceAtIndex (@Nonnegative final int nIndex) { return m_aResources.getAtIndex (nIndex); }
@Nullable public TypeaheadDataset getDatasetAtIndex (@Nonnegative final int nIndex) { return m_aDatasets.getAtIndex (nIndex); }
@Override @Nullable public final IMicroNode getChildAtIndex (@Nonnegative final int nIndex) { return m_aChildren == null ? null : m_aChildren.getAtIndex (nIndex); }
@Nullable public DataTablesLengthMenuItem getItemAtIndex (@Nonnegative final int nIndex) { return m_aList.getAtIndex (nIndex); }
/** * Get the expression member at the specified index. * * @param nIndex * The index to be retrieved * @return <code>null</code> if an invalid member index was passed. */ @Nullable public ICSSExpressionMember getMemberAtIndex (@Nonnegative final int nIndex) { return m_aMembers.getAtIndex (nIndex); }
@Nullable public ICSSSelectorMember getMemberAtIndex (@Nonnegative final int nMemberIndex) { return m_aMembers.getAtIndex (nMemberIndex); }
@Nullable public ICSSSupportsConditionMember getSupportsConditionMemberAtIndex (@Nonnegative final int nIndex) { return m_aConditionMembers.getAtIndex (nIndex); }
@Nullable public ICSSSupportsConditionMember getMemberAtIndex (@Nonnegative final int nIndex) { return m_aMembers.getAtIndex (nIndex); }
@Nullable public CSSKeyframesBlock getBlockAtIndex (@Nonnegative final int nBlockIndex) { return m_aBlocks.getAtIndex (nBlockIndex); }
/** * Get the media query at the specified index or <code>null</code>. * * @param nMediumIndex * The index to be retrieved. Should be ≥ 0. * @return <code>null</code> if an invalid index was provided. */ @Nullable public CSSMediaQuery getMediaQueryAtIndex (@Nonnegative final int nMediumIndex) { return m_aMediaQueries.getAtIndex (nMediumIndex); }
@Nullable public CSSSelector getSelectorAtIndex (@Nonnegative final int nSelectorIndex) { return m_aSelectors.getAtIndex (nSelectorIndex); }
@Nullable public CSSSelector getSelectorAtIndex (@Nonnegative final int nSelectorIndex) { return m_aNestedSelectors.getAtIndex (nSelectorIndex); }
/** * Get the <code>@import</code> rule at the specified index. * * @param nIndex * The index to be resolved. Should be ≥ 0 and < * {@link #getImportRuleCount()}. * @return <code>null</code> if an invalid index was specified. * @since 3.7.4 */ @Nullable public CSSImportRule getImportRuleAtIndex (@Nonnegative final int nIndex) { return m_aImportRules.getAtIndex (nIndex); }
/** * Get the <code>@namespace</code> rule at the specified index. * * @param nIndex * The index to be resolved. Should be ≥ 0 and < * {@link #getNamespaceRuleCount()}. * @return <code>null</code> if an invalid index was specified. * @since 3.7.4 */ @Nullable public CSSNamespaceRule getNamespaceRuleAtIndex (@Nonnegative final int nIndex) { return m_aNamespaceRules.getAtIndex (nIndex); }
@Nullable public final IMicroNode getNextSibling () { if (m_aParentNode == null) return null; final ICommonsList <IMicroNode> aParentChildren = m_aParentNode.directGetAllChildren (); final int nIndex = aParentChildren.indexOf (this); if (nIndex == -1) throw new IllegalStateException ("this is no part of it's parents children"); // getAtIndex handles index overflow return aParentChildren.getAtIndex (nIndex + 1); }
@Nullable public final IMicroNode getPreviousSibling () { if (m_aParentNode == null) return null; final ICommonsList <IMicroNode> aParentChildren = m_aParentNode.directGetAllChildren (); final int nIndex = aParentChildren.indexOf (this); if (nIndex == -1) throw new IllegalStateException ("this is no part of it's parents children"); // getAtIndex handles index underflow return aParentChildren.getAtIndex (nIndex - 1); }