com.liferay.source.formatter.checkstyle.check.CreationMenuBuilderCheck Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.source.formatter.checkstyle.check;
import com.liferay.portal.kernel.util.ListUtil;
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import java.util.Collections;
import java.util.List;
/**
* @author Hugo Huijser
*/
public class CreationMenuBuilderCheck extends BaseBuilderCheck {
@Override
protected boolean allowNullValues() {
return true;
}
@Override
protected List
doGetBuilderInformationList() {
return ListUtil.fromArray(
new BaseBuilderCheck.BuilderInformation(
"CreationMenu", "CreationMenuBuilder", "addDropdownItem",
"addFavoriteDropdownItem", "addPrimaryDropdownItem",
"addRestDropdownItem"));
}
@Override
protected String getAssignClassName(DetailAST assignDetailAST) {
return getNewInstanceTypeName(assignDetailAST);
}
@Override
protected List getSupportsFunctionMethodNames() {
return Collections.emptyList();
}
@Override
protected boolean isSupportsNestedMethodCalls() {
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy