Package org.robolectric.shadows
Class ShadowXmlBlock
java.lang.Object
org.robolectric.shadows.ShadowBaseXmlBlock
org.robolectric.shadows.ShadowXmlBlock
@Implements(className="android.content.res.XmlBlock",
isInAndroidSdk=false,
shadowPicker=Picker.class)
public class ShadowXmlBlock
extends ShadowBaseXmlBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classShadow of XmlBlock.Parser.Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowBaseXmlBlock
ShadowBaseXmlBlock.Picker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static longnativeCreate(byte[] bArray, int off, int len) protected static longnativeCreateParseState(long obj) protected static longnativeCreateParseState(long obj, int resid) protected static voidnativeDestroy(long obj) protected static voidnativeDestroyParseState(long state) protected static intnativeGetAttributeCount(long state) protected static intnativeGetAttributeData(long state, int idx) protected static intnativeGetAttributeDataType(long state, int idx) protected static intnativeGetAttributeIndex(long token, String ns, String name) protected static intnativeGetAttributeName(long state, int idx) protected static intnativeGetAttributeNamespace(long state, int idx) protected static intnativeGetAttributeResource(long state, int idx) protected static intnativeGetAttributeStringValue(long state, int idx) protected static intnativeGetClassAttribute(long state) protected static intnativeGetIdAttribute(long state) protected static intnativeGetLineNumber(long state) protected static intnativeGetName(long state) protected static intnativeGetNamespace(long state) protected static intnativeGetSourceResId(long state) protected static longnativeGetStringBlock(long obj) protected static intnativeGetStyleAttribute(long state) protected static intnativeGetText(long state) protected static intnativeNext(long state)
-
Constructor Details
-
ShadowXmlBlock
public ShadowXmlBlock()
-
-
Method Details
-
nativeCreate
@Implementation protected static long nativeCreate(byte[] bArray, int off, int len) -
nativeGetStringBlock
@Implementation protected static long nativeGetStringBlock(long obj) -
nativeCreateParseState
@Implementation(maxSdk=28) protected static long nativeCreateParseState(long obj) -
nativeCreateParseState
@Implementation(minSdk=29) protected static long nativeCreateParseState(long obj, int resid) -
nativeNext
- Throws:
XmlPullParserException
-
nativeGetNamespace
@Implementation protected static int nativeGetNamespace(long state) -
nativeGetName
@Implementation protected static int nativeGetName(long state) -
nativeGetText
@Implementation protected static int nativeGetText(long state) -
nativeGetLineNumber
@Implementation protected static int nativeGetLineNumber(long state) -
nativeGetAttributeCount
@Implementation protected static int nativeGetAttributeCount(long state) -
nativeGetAttributeNamespace
@Implementation protected static int nativeGetAttributeNamespace(long state, int idx) -
nativeGetAttributeName
@Implementation protected static int nativeGetAttributeName(long state, int idx) -
nativeGetAttributeResource
@Implementation protected static int nativeGetAttributeResource(long state, int idx) -
nativeGetAttributeDataType
@Implementation protected static int nativeGetAttributeDataType(long state, int idx) -
nativeGetAttributeData
@Implementation protected static int nativeGetAttributeData(long state, int idx) -
nativeGetAttributeStringValue
@Implementation protected static int nativeGetAttributeStringValue(long state, int idx) -
nativeGetIdAttribute
@Implementation protected static int nativeGetIdAttribute(long state) -
nativeGetClassAttribute
@Implementation protected static int nativeGetClassAttribute(long state) -
nativeGetStyleAttribute
@Implementation protected static int nativeGetStyleAttribute(long state) -
nativeGetAttributeIndex
-
nativeGetSourceResId
@Implementation(minSdk=29) protected static int nativeGetSourceResId(long state) -
nativeDestroyParseState
@Implementation protected static void nativeDestroyParseState(long state) -
nativeDestroy
@Implementation protected static void nativeDestroy(long obj)
-