if (ElKey.HTML_WILDCARD.equals(key.el)
|| schema.isElementAllowed(key.el)
// Whitelisted to allow dynamic script loading via proxy
|| SCRIPT_SRC.equals(key)) {
keys.add(StringLiteral.valueOf(unk, key.toString()));
values.add(new IntegerLiteral(unk, A_TYPE_MAP.get(e.getValue())));
}
}
definitions.appendChild(export("ATTRIBS",
(Expression) QuasiBuilder.substV(
"({ @k*: @v* })",
"k", new ParseTreeNodeContainer(keys),
"v", new ParseTreeNodeContainer(values))));
}
definitions.appendChild(mapFromEnum(
EnumSet.allOf(EFlag.class),
"eflags",
new Function<EFlag, String>() {
public String apply(EFlag f) {
return f.name();
}
},
new Function<EFlag, Integer>() {
public Integer apply(EFlag f) {
return f.bitMask;
}
})
);
definitions.appendChild(mapFromMap(
eflags,
"ELEMENTS",
new Function<EnumSet<EFlag>, Expression>() {
public Expression apply(EnumSet<EFlag> flags) {
int value = 0;
for (EFlag f : flags) { value |= f.bitMask; }
return new IntegerLiteral(unk, value);
}
})
);
definitions.appendChild(mapFromMap(