Tabnine Logo
ArrayType.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
me.jamiemansfield.bombe.type.ArrayType
constructor

Best Java code snippets using me.jamiemansfield.bombe.type.ArrayType.<init> (Showing top 3 results out of 315)

origin: me.jamiemansfield/bombe-core

/**
 * Reads the next {@link ArrayType} from source.
 *
 * @return The type
 * @throws IllegalStateException If the descriptor is invalid
 */
public ArrayType readArrayType() {
  int count = 0;
  while (this.hasNext() && this.peek() == '[') {
    this.advance();
    count++;
  }
  return new ArrayType(count, this.readFieldType());
}
origin: me.jamiemansfield/lorenz

private static FieldType handleNonePrefix(final FieldType type) {
  if (type instanceof ArrayType) {
    final ArrayType arr = (ArrayType) type;
    return new ArrayType(arr.getDimCount(), handleNonePrefix(arr.getComponent()));
  }
  if (type instanceof ObjectType) {
    final ObjectType obj = (ObjectType) type;
    return new ObjectType(handleNonePrefix(obj.getClassName()));
  }
  return type;
}
origin: me.jamiemansfield/lorenz

private static FieldType handleNonePrefix(final FieldType type) {
  if (type instanceof ArrayType) {
    final ArrayType arr = (ArrayType) type;
    return new ArrayType(arr.getDimCount(), handleNonePrefix(arr.getComponent()));
  }
  if (type instanceof ObjectType) {
    final ObjectType obj = (ObjectType) type;
    return new ObjectType(handleNonePrefix(obj.getClassName()));
  }
  return type;
}
me.jamiemansfield.bombe.typeArrayType<init>

Javadoc

Creates a new array type, of the specified array dimensions, and Type component.

Popular methods of ArrayType

  • getComponent
    Gets the FieldType of the array.
  • getDimCount
    Gets the dimension count of the array.
  • getDims
    Gets the raw dimension descriptor of the array.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now