eventTypes = new HashMap<String, EventHelper>(events.size());
for (int i = 0, length = events.size(); i < length; i++)
{
MetaData md = events.get(i);
String name = md.getValue("name");
String typeName = md.getValue("type");
if (name != null)
{
if (typeName == null)
{
// [Event(name="...")]
typeName = SymbolTable.EVENT;
}
else
{
// [Event(name="...",type="...")]
typeName = NameFormatter.toColon(typeName);
}
}
else
{
// [Event("name")]
name = md.getValue(0);
typeName = SymbolTable.EVENT;
}
if (typeName != null)
{
eventTypes.put(name, new EventHelper(name, typeName,
md.getValue(Deprecated.DEPRECATED_MESSAGE),
md.getValue(Deprecated.DEPRECATED_REPLACEMENT),
md.getValue(Deprecated.DEPRECATED_SINCE)));
}
}
}