public static void removeMetaData(DefinitionNode definitionNode, String id) { StatementListNode metaData = definitionNode.metaData; if ((metaData != null) && (metaData.items != null)) { Iterator iterator = metaData.items.iterator(); while (iterator.hasNext()) { MetaDataNode metaDataNode = (MetaDataNode) iterator.next(); if ((metaDataNode.getId() != null) && metaDataNode.getId().equals(id)) { iterator.remove(); } } } }
public Value evaluate(Context context, MetaDataNode node) { if ("Style".equals(node.getId())) { if (NodeMagic.isClassDefinition(node)) { processStyle(context, node); } else { context.localizedError2(node.pos(), new StyleMustAnnotateAClass()); } } return null; }