final class PolymerClassDefinition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) com.google.common.collect.ImmutableList<PolymerBehaviorExtractor.BehaviorDefinition> |
behaviors
Flattened list of behavior definitions used by this element.
|
(package private) PolymerPass.MemberDefinition |
constructor
The constructor function for the element.
|
(package private) Node |
descriptor
The object literal passed to the call to the Polymer() function.
|
(package private) java.lang.String |
nativeBaseElement
The name of the native HTML element which this element extends.
|
(package private) java.util.List<PolymerPass.MemberDefinition> |
props
Properties declared in the Polymer "properties" block.
|
(package private) Node |
target
The target node (LHS) for the Polymer element definition.
|
Constructor and Description |
---|
PolymerClassDefinition(Node target,
Node descriptor,
JSDocInfo classInfo,
PolymerPass.MemberDefinition constructor,
java.lang.String nativeBaseElement,
java.util.List<PolymerPass.MemberDefinition> props,
com.google.common.collect.ImmutableList<PolymerBehaviorExtractor.BehaviorDefinition> behaviors) |
Modifier and Type | Method and Description |
---|---|
(package private) static PolymerClassDefinition |
extractFromCallNode(Node callNode,
AbstractCompiler compiler,
GlobalNamespace globalNames)
Validates the class definition and if valid, destructively extracts the class definition from
the AST.
|
private static void |
overwriteMembersIfPresent(java.util.List<PolymerPass.MemberDefinition> list,
java.util.List<PolymerPass.MemberDefinition> newMembers)
Appends a list of new MemberDefinitions to the end of a list and removes any previous
MemberDefinition in the list which has the same name as the new member.
|
final Node target
final Node descriptor
final PolymerPass.MemberDefinition constructor
final java.lang.String nativeBaseElement
final java.util.List<PolymerPass.MemberDefinition> props
final com.google.common.collect.ImmutableList<PolymerBehaviorExtractor.BehaviorDefinition> behaviors
PolymerClassDefinition(Node target, Node descriptor, JSDocInfo classInfo, PolymerPass.MemberDefinition constructor, java.lang.String nativeBaseElement, java.util.List<PolymerPass.MemberDefinition> props, com.google.common.collect.ImmutableList<PolymerBehaviorExtractor.BehaviorDefinition> behaviors)
@Nullable static PolymerClassDefinition extractFromCallNode(Node callNode, AbstractCompiler compiler, GlobalNamespace globalNames)
private static void overwriteMembersIfPresent(java.util.List<PolymerPass.MemberDefinition> list, java.util.List<PolymerPass.MemberDefinition> newMembers)