All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.ir.builder.IRFeatureBuilder Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */

package gw.lang.ir.builder;

import gw.lang.UnstableAPI;
import gw.lang.reflect.Modifier;

@UnstableAPI
public class IRFeatureBuilder extends IRBuilder {
  protected int _modifiers = 0;

  @SuppressWarnings({"unchecked"})
  public T withModifiers(int modifiers) {
    _modifiers = modifiers;
    return (T) this;
  }

  @SuppressWarnings({"unchecked"})
  public T _public() {
    _modifiers = Modifier.setPublic(_modifiers, true);
    return (T) this;
  }

  @SuppressWarnings({"unchecked"})
  public T _private() {
    _modifiers = Modifier.setPrivate(_modifiers, true);
    return (T) this;
  }

  @SuppressWarnings({"unchecked"})
  public T _internal() {
    _modifiers = Modifier.setInternal(_modifiers, true);
    return (T) this;
  }

  @SuppressWarnings({"unchecked"})
  public T _protected() {
    _modifiers = Modifier.setProtected(_modifiers, true);
    return (T) this;
  }

  @SuppressWarnings({"unchecked"})
  public T _static() {
    _modifiers = Modifier.setStatic(_modifiers, true);
    return (T) this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy