com.opendatagroup.hadrian

jvmcompiler

package jvmcompiler

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. jvmcompiler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class JVMCompiler extends Task

    Most common Task for Ast walk; generates Java code from a PFA AST.

  2. case class JavaCode(format: String, contents: String*) extends TaskResult with Product with Serializable

    TaskResult for JVMCompiler, which represents Java code.

  3. trait PFAEmitEngine[INPUT <: AnyRef, OUTPUT <: AnyRef] extends PFAEngine[INPUT, OUTPUT]

    Interface for a method = emit Hadrian scoring engine (one that returns zero or more outputs for each input).

  4. trait PFAEngine[INPUT <: AnyRef, OUTPUT <: AnyRef] extends AnyRef

    Interface for a Hadrian scoring engine.

  5. abstract class PFAEngineBase extends AnyRef

    Abstract class for interface PFAEngine; defines some functions in the Hadrian JAR so they don't have to be defined in auto-generated Java.

  6. trait PFAFoldEngine[INPUT <: AnyRef, OUTPUT <: AnyRef] extends PFAEngine[INPUT, OUTPUT]

    Interface for a method = fold Hadrian scoring engine (one that accumulates a tally).

  7. trait PFAMapEngine[INPUT <: AnyRef, OUTPUT <: AnyRef] extends PFAEngine[INPUT, OUTPUT]

    Interface for a method = map Hadrian scoring engine (one that returns one output for each input).

Value Members

  1. object JVMNameMangle

    Collection of functions for prefixing names in Java, to avoid name conflicts.

  2. object PFAEngine

    Companion object for Hadrian scoring engines: defines "static" methods.

  3. object W

    Collection of utility functions to make Java code or be called by Java for routine tasks.

  4. var defaultPFAVersion: String

    Version of the PFA language that this Hadrian JAR attempts to use by default.

  5. def javaSchema(avroType: AvroType, construct: Boolean): String

    Express a AvroType as Java code that constructs the corresponding org.apache.avro.Schema inline.

    Express a AvroType as Java code that constructs the corresponding org.apache.avro.Schema inline.

    avroType

    the type to express as Java code that builds an Avro library Schema

    construct

    if true, actually build named types; if false, merely qutoe their names

  6. def javaType(avroType: AvroType, boxed: Boolean, qualified: Boolean, generic: Boolean): String

    Express a AvroType as its corresponding Java type.

    Express a AvroType as its corresponding Java type.

    avroType

    the type to express as a Java code string

    boxed

    if true, use boxed primitives; if false, use raw primitives

    qualified

    if true, fully qualify the name; if false, do not

    generic

    if true, use a generic (abstract superclass) name; if false, use the most specific name

  7. def lineNumbers(src: String): String

    Wraps debugging Java code with line numbers for readability.

    Wraps debugging Java code with line numbers for readability.

    src

    source code string for a Java in-memory file that needs line numbers for readability

  8. def posToJava(pos: Option[String]): String

    Create Java code to create a locator mark, pointing to the line number in the original source code.

    Create Java code to create a locator mark, pointing to the line number in the original source code.

    pos

    optional position

    returns

    Java code to call "scala.Option.apply(string)" to make Some(string) or "scala.Option.apply(null)" to make a None

Inherited from AnyRef

Inherited from Any

Ungrouped