final class PolymerPassStaticUtils
extends java.lang.Object
PolymerPass
and its helper classes.Constructor and Description |
---|
PolymerPassStaticUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static com.google.common.collect.ImmutableList<PolymerPass.MemberDefinition> |
extractProperties(Node descriptor)
Extracts a list of
PolymerPass.MemberDefinition s for the properties block of the given
descriptor Object literal. |
static java.lang.String |
getPolymerElementType(PolymerClassDefinition cls) |
(package private) static JSTypeExpression |
getTypeFromProperty(PolymerPass.MemberDefinition property,
AbstractCompiler compiler)
Gets the JSTypeExpression for a given property using its "type" key.
|
(package private) static void |
quoteListenerAndHostAttributeKeys(Node objLit)
Makes sure that the keys for listeners and hostAttributes blocks are quoted to avoid renaming.
|
(package private) static void |
switchDollarSignPropsToBrackets(Node objLit,
AbstractCompiler compiler)
Switches all "this.$.foo" to "this.$['foo']".
|
static void switchDollarSignPropsToBrackets(Node objLit, AbstractCompiler compiler)
static void quoteListenerAndHostAttributeKeys(Node objLit)
static com.google.common.collect.ImmutableList<PolymerPass.MemberDefinition> extractProperties(Node descriptor)
PolymerPass.MemberDefinition
s for the properties
block of the given
descriptor Object literal.static JSTypeExpression getTypeFromProperty(PolymerPass.MemberDefinition property, AbstractCompiler compiler)
https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#configuring-properties
public static java.lang.String getPolymerElementType(PolymerClassDefinition cls)