io.github.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 io.github.mmm.code.api.member;
import io.github.mmm.code.api.copy.CodeNodeItemCopyable;
import io.github.mmm.code.api.merge.CodeAdvancedMergeableItem;
import io.github.mmm.code.api.node.CodeNodeItemContainerFlat;
import io.github.mmm.code.api.type.CodeGenericType;
import io.github.mmm.code.api.type.CodeType;
/**
* {@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 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 io.github.mmm.base.exception.ReadOnlyException if {@link #isImmutable() immutable}.
*/
CodeConstructor add();
@Override
CodeConstructors copy();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy