blob: 120ef53d8f04c47ec3f17018413df5f54a2999b6 [file] [log] [blame]
/*
* Copyright (c) 2013, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.dart.engine.type;
import com.google.dart.engine.element.TypeParameterElement;
/**
* The interface {@code ParameterizedType} defines the behavior common to objects representing a
* type with type parameters, such as a class or function type alias.
*
* @coverage dart.engine.type
*/
public interface ParameterizedType extends Type {
/**
* Return an array containing the actual types of the type arguments. If this type's element does
* not have type parameters, then the array should be empty (although it is possible for type
* arguments to be erroneously declared). If the element has type parameters and the actual type
* does not explicitly include argument values, then the type "dynamic" will be automatically
* provided.
*
* @return the actual types of the type arguments
*/
public Type[] getTypeArguments();
/**
* Return an array containing all of the type parameters declared for this type.
*
* @return the type parameters declared for this type
*/
public TypeParameterElement[] getTypeParameters();
}