|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
What special operations must the type of a union implement?
Method Summary | |
int |
countTags()
How many tags are there? |
int |
getIndex(String tag)
Convert a tag string to the corresponding tag index. |
String |
getTag(int idx)
Get the name of the idxth tag. |
Type |
getTagEnumeration()
Get an enumeration of the tags. |
Type |
getType(int idx)
Get the type of the idxth tag. |
String |
render(Expression contents,
int index)
Render a union, given the value and tag that the union is defined by. |
Method Detail |
public String render(Expression contents, int index)
public int getIndex(String tag) throws TypeException
TypeException
- If the tag string is unknown in the type.public int countTags()
public Type getType(int idx)
public String getTag(int idx) throws TypeException
TypeException
- If the index is out of range.public Type getTagEnumeration() throws TypeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |