Class TypeInfoProvider

java.lang.Object
com.pnfsoftware.jeb.client.script.TypeInfoProvider
All Implemented Interfaces:
Iterable<TypeInfo>

public class TypeInfoProvider extends Object implements Iterable<TypeInfo>
Java type parser and provider used by the script interpreter.

This object can be used to parse files such $JEB_HOME/doc/jeb-types.txt to provide type hints to the script interpreter.

  • Constructor Details

  • Method Details

    • size

      public int size()
    • iterator

      public Iterator<TypeInfo> iterator()
      Specified by:
      iterator in interface Iterable<TypeInfo>
    • get

      public TypeInfo get(String name)
    • findTypeName

      public String findTypeName(String simplename)
      Find the fully-qualified name of a type from its simple name.
      Parameters:
      simplename -
      Returns:
      null on a collision
    • findTypeName

      public String findTypeName(String simplename, boolean caseInsensitive)
      Find the fully-qualified name of a type from its simple name. Case doesn't matter.
      Parameters:
      simplename -
      Returns:
      null on a collision
    • findType

      public TypeInfo findType(String simplename)
      Find a type from its simple name.
      Parameters:
      simplename -
      Returns:
      null on a collision
    • findType

      public TypeInfo findType(String simplename, boolean caseInsensitive)
      Find a type from its simple name. Case doesn't matter.
      Parameters:
      simplename -
      Returns:
      null on a collision