Codota Logo
Fluid
Code IndexAdd Codota to your IDE (free)

How to use
Fluid
in
com.artemis.annotations

Best Java code snippets using com.artemis.annotations.Fluid (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: junkdog/artemis-odb

/**
 * @author Daan van Yperen
 */
@Fluid(swallowGettersWithParameters = true)
public class ParaGetter extends Component {
  public String custom( String a ) { return a; }
}

origin: junkdog/artemis-odb

public void apply(Fluid fluid) {
  this.swallowGettersWithParameters = fluid.swallowGettersWithParameters();
  this.excludeFromGeneration = fluid.exclude();
}
origin: junkdog/artemis-odb

/** Create descriptor for passed type. */
public static ComponentDescriptor create(Class<? extends Component> type, FluidGeneratorPreferences globalPreferences) {
  String methodPrefix = Strings.decapitalizeString(type.getSimpleName());
  String name = type.getSimpleName();
  FluidGeneratorPreferences preferences = new FluidGeneratorPreferences();
  preferences.mirror(globalPreferences);
  // @todo make sure this is processed from least to most pressing.
  for (Annotation annotation : ExtendedTypeReflection.getAllAnnotations(type)) {
    if (annotation.annotationType().equals(Fluid.class)) {
      final Fluid fluid = (Fluid) annotation;
      if (!fluid.name().isEmpty()) {
        methodPrefix = fluid.name();
        name = Strings.capitalizeString(fluid.name());
      }
      preferences.apply(fluid);
    }
  }
  return new ComponentDescriptor(type, methodPrefix, name, preferences );
}
origin: net.onedaybeard.artemis/artemis-fluid-core

/** Create descriptor for passed type. */
public static ComponentDescriptor create(Class<? extends Component> type, FluidGeneratorPreferences globalPreferences) {
  String methodPrefix = Strings.decapitalizeString(type.getSimpleName());
  String name = type.getSimpleName();
  FluidGeneratorPreferences preferences = new FluidGeneratorPreferences();
  preferences.mirror(globalPreferences);
  // @todo make sure this is processed from least to most pressing.
  for (Annotation annotation : ExtendedTypeReflection.getAllAnnotations(type)) {
    if (annotation.annotationType().equals(Fluid.class)) {
      final Fluid fluid = (Fluid) annotation;
      if (!fluid.name().isEmpty()) {
        methodPrefix = fluid.name();
        name = Strings.capitalizeString(fluid.name());
      }
      preferences.apply(fluid);
    }
  }
  return new ComponentDescriptor(type, methodPrefix, name, preferences );
}
origin: DaanVanYperen/artemis-odb-contrib

/**
 * Blueprint for extended component.
 *
 * Rich components:
 * - Are pooled.
 * - Can mirror state of another component.
 *
 * @author Daan van Yperen
 */
@Fluid(swallowGettersWithParameters = true)
public abstract class ExtendedComponent<T extends ExtendedComponent> extends PooledComponent
    implements Serializable, Mirrorable<T> {
}

origin: net.onedaybeard.artemis/artemis-fluid-core

public void apply(Fluid fluid) {
  this.swallowGettersWithParameters = fluid.swallowGettersWithParameters();
  this.excludeFromGeneration = fluid.exclude();
}
origin: junkdog/artemis-odb

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
public class Excluded extends Component {
}

origin: junkdog/artemis-odb

/**
 * @author Daan van Yperen
 */
@Fluid(name = "rename2")
public class Rename extends Component {
}

origin: net.mostlyoriginal.artemis-odb/contrib-core

/**
 * Blueprint for extended component.
 *
 * Rich components:
 * - Are pooled.
 * - Can mirror state of another component.
 *
 * @author Daan van Yperen
 */
@Fluid(swallowGettersWithParameters = true)
public abstract class ExtendedComponent<T extends ExtendedComponent> extends PooledComponent
    implements Serializable, Mirrorable<T> {
}

origin: net.mostlyoriginal.artemis-odb/contrib-jam

@Fluid(swallowGettersWithParameters = true)
public class Physics extends Component implements Serializable {
origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations

@Fluid(name = "script")
public class Schedule extends PooledComponent {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(swallowGettersWithParameters = true)
public class Physics extends Component implements Serializable {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(name = "script")
public class Schedule extends PooledComponent {
origin: net.mostlyoriginal.artemis-odb/contrib-jam

@Fluid(swallowGettersWithParameters=true)
public class Tint extends ExtendedComponent<Tint> implements Tweenable<Tint> {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(swallowGettersWithParameters=true)
public class Tint extends ExtendedComponent<Tint> implements Tweenable<Tint> {
origin: net.mostlyoriginal.artemis-odb/contrib-jam

@Fluid(swallowGettersWithParameters = true)
@Deprecated
public class Anim extends Component {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(swallowGettersWithParameters = true)
@Deprecated
public class Anim extends Component {
origin: net.mostlyoriginal.artemis-odb/contrib-jam

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
@Transient
public class SpriteAsset extends PooledComponent {

  public Texture asset;

  @Override
  protected void reset() {
    asset = null;
  }
}

origin: net.mostlyoriginal.artemis-odb/contrib-jam

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
@Transient
public class AnimationAsset extends PooledComponent {

  public com.badlogic.gdx.graphics.g2d.Animation<TextureRegion> asset;

  @Override
  protected void reset() {
    asset = null;
  }
}

origin: DaanVanYperen/artemis-odb-contrib

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
@Transient
public class SpriteAsset extends PooledComponent {

  public Texture asset;

  @Override
  protected void reset() {
    asset = null;
  }
}

com.artemis.annotationsFluid

Most used methods

  • <init>
  • exclude
  • name
  • swallowGettersWithParameters

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • setContentView (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now