OLD | NEW |
---|---|
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
Brian Wilkerson
2012/09/28 18:14:37
nit: Copyright year
| |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 package com.google.dart.compiler.resolver; | 4 package com.google.dart.compiler.resolver; |
5 | 5 |
6 public interface ConstructorElement extends MethodElement { | 6 public interface ConstructorElement extends MethodElement { |
7 /** | 7 /** |
8 * Returns the type of the instances created by this constructor. Note that a constructor in a | 8 * Returns the type of the instances created by this constructor. Note that a constructor in a |
9 * class may be a default implementation of an interface's constructor. | 9 * class may be a default implementation of an interface's constructor. |
10 */ | 10 */ |
11 ClassElement getConstructorType(); | 11 ClassElement getConstructorType(); |
12 | 12 |
13 /** | 13 /** |
14 * @return the {@link ConstructorElement} in default factory class, may be <co de>null</code>. | 14 * @return the {@link ConstructorElement} in default factory class, may be <co de>null</code>. |
15 */ | 15 */ |
16 ConstructorElement getDefaultConstructor(); | 16 ConstructorElement getDefaultConstructor(); |
17 | 17 |
18 boolean isSynthetic(); | 18 boolean isSynthetic(); |
19 | 19 |
20 String getRawName(); | 20 String getRawName(); |
21 | 21 |
22 /** | 22 /** |
23 * Sets {@link ConstructorElement} in default factory class, may be <code>null </code>. | 23 * Sets {@link ConstructorElement} in default factory class, may be <code>null </code>. |
24 */ | 24 */ |
25 void setDefaultConstructor(ConstructorElement defaultConstructor); | 25 void setDefaultConstructor(ConstructorElement defaultConstructor); |
26 | |
27 ConstructorElement getRedirectingFactoryConstructor(); | |
26 } | 28 } |
OLD | NEW |