net.sf.mmm.code.api.member.CodeConstructors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-code-api Show documentation
Show all versions of mmm-code-api Show documentation
The API to parse, analyze, transform and generate code.
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.code.api.member;
import net.sf.mmm.code.api.copy.CodeNodeItemCopyable;
import net.sf.mmm.code.api.merge.CodeAdvancedMergeableItem;
import net.sf.mmm.code.api.node.CodeNodeItemContainerFlat;
import net.sf.mmm.code.api.type.CodeGenericType;
import net.sf.mmm.code.api.type.CodeType;
import net.sf.mmm.util.exception.api.ReadOnlyException;
/**
* {@link CodeMembers} as a container for the {@link CodeConstructor}s.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public interface CodeConstructors extends CodeOperations, CodeNodeItemContainerFlat,
CodeAdvancedMergeableItem, CodeNodeItemCopyable {
/**
* @param name the {@link CodeOperation#getName() name} of the requested {@link CodeOperation}.
* @param parameterTypes the {@link CodeGenericType}s of the {@link CodeOperation#getParameters() parameters}.
* @return the requested {@link CodeOperation} or {@code null} if not found.
*/
CodeConstructor get(CodeGenericType... parameterTypes);
/**
* @return a new {@link CodeConstructor} that has been added to {@link #getDeclared()}. It will not have any
* {@link CodeMethod#getParameters() parameters} or {@link CodeMethod#getExceptions() exceptions}. Simply add
* those afterwards as needed.
* @throws ReadOnlyException if {@link #isImmutable() immutable}.
*/
CodeConstructor add();
@Override
CodeConstructors copy();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy