com.speedment.common.codegen.model.modifier.Keyword Maven / Gradle / Ivy
/**
*
* Copyright (c) 2006-2016, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
*
* 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.speedment.common.codegen.model.modifier;
import com.speedment.common.codegen.model.trait.HasModifiers;
import static com.speedment.common.codegen.model.modifier.Modifier.*;
/**
*
* @author Emil Forslund
* @since 2.0.0
*/
public interface Keyword {
interface Public> extends HasModifiers {
@SuppressWarnings("unchecked")
default T public_() {
getModifiers().add(PUBLIC);
return (T) this;
}
}
interface Protected> extends HasModifiers {
@SuppressWarnings("unchecked")
default T protected_() {
getModifiers().add(PROTECTED);
return (T) this;
}
}
interface Private> extends HasModifiers {
@SuppressWarnings("unchecked")
default T private_() {
getModifiers().add(PRIVATE);
return (T) this;
}
}
interface Static> extends HasModifiers {
@SuppressWarnings("unchecked")
default T static_() {
getModifiers().add(STATIC);
return (T) this;
}
}
interface Final> extends HasModifiers {
@SuppressWarnings("unchecked")
default T final_() {
getModifiers().add(FINAL);
return (T) this;
}
}
interface Abstract> extends HasModifiers {
@SuppressWarnings("unchecked")
default T abstract_() {
getModifiers().add(ABSTRACT);
return (T) this;
}
}
interface Strictfp> extends HasModifiers {
@SuppressWarnings("unchecked")
default T strictfp_() {
getModifiers().add(STRICTFP);
return (T) this;
}
}
interface Synchronized> extends HasModifiers {
@SuppressWarnings("unchecked")
default T synchronized_() {
getModifiers().add(SYNCHRONIZED);
return (T) this;
}
}
interface Transient> extends HasModifiers {
@SuppressWarnings("unchecked")
default T transient_() {
getModifiers().add(TRANSIENT);
return (T) this;
}
}
interface Volatile> extends HasModifiers {
@SuppressWarnings("unchecked")
default T volatile_() {
getModifiers().add(VOLATILE);
return (T) this;
}
}
interface Native> extends HasModifiers {
@SuppressWarnings("unchecked")
default T native_() {
getModifiers().add(NATIVE);
return (T) this;
}
}
interface Default> extends HasModifiers {
@SuppressWarnings("unchecked")
default T default_() {
getModifiers().add(DEFAULT);
return (T) this;
}
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy