Package org.robolectric.res.android
Class ResXMLParser
java.lang.Object
org.robolectric.res.android.ResXMLParser
public class ResXMLParser extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResXMLParser.event_code_t
-
Constructor Summary
Constructors Constructor Description ResXMLParser(ResXMLTree tree)
-
Method Summary
Modifier and Type Method Description int
getAttributeCount()
int
getAttributeData(int idx)
int
getAttributeDataType(int idx)
int
getAttributeNameID(int idx)
int
getAttributeNameResID(int idx)
int
getAttributeNamespaceID(int idx)
int
getAttributeValue(int idx, Ref<ResourceTypes.Res_value> outValue)
int
getAttributeValueStringID(int idx)
int
getElementNameID()
int
getElementNamespaceID()
int
getLineNumber()
int
getSourceResourceId()
ResStringPool
getStrings()
int
getTextID()
int
indexOfAttribute(String ns, int nsLen, String attr, int attrLen)
int
indexOfClass()
int
indexOfID()
int
indexOfStyle()
int
next()
void
restart()
void
setSourceResourceId(int resId)
-
Constructor Details
-
Method Details
-
restart
public void restart() -
getStrings
-
next
public int next() -
getLineNumber
public int getLineNumber() -
getTextID
public int getTextID() -
getElementNamespaceID
public int getElementNamespaceID() -
getElementNameID
public int getElementNameID() -
getAttributeCount
public int getAttributeCount() -
getAttributeNamespaceID
public int getAttributeNamespaceID(int idx) -
getAttributeNameID
public int getAttributeNameID(int idx) -
getAttributeNameResID
public int getAttributeNameResID(int idx) -
getAttributeValueStringID
public int getAttributeValueStringID(int idx) -
getAttributeDataType
public int getAttributeDataType(int idx) -
getAttributeData
public int getAttributeData(int idx) -
getAttributeValue
-
indexOfAttribute
-
indexOfID
public int indexOfID() -
indexOfClass
public int indexOfClass() -
indexOfStyle
public int indexOfStyle() -
setSourceResourceId
public void setSourceResourceId(int resId) -
getSourceResourceId
public int getSourceResourceId()
-