Class ASTBinder

java.lang.Object
nz.org.riskscape.engine.bind.BaseBinder
nz.org.riskscape.engine.bind.impl.ASTBinder
All Implemented Interfaces:
nz.org.riskscape.engine.bind.ParameterBinder, nz.org.riskscape.engine.Identified

public class ASTBinder extends nz.org.riskscape.engine.bind.BaseBinder

Supports binding expressions and has some support for binding bits of pipelineast, but note that at the moment it only really can bind to a complete pipeline or do straight assignment. The reason for the pipeline support is mostly here so we can give decent error messages when a pipeline step is expecting a particular type of ast element and is assigned the wrong one.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> nz.org.riskscape.problem.ResultOrProblems<T>
    bindValue(nz.org.riskscape.engine.bind.BindingContext context, Object valueObj, Class<T> destinationType)
     
    boolean
    canBind(Class<?> sourceType, Class<?> destinationType)
     

    Methods inherited from class nz.org.riskscape.engine.bind.BaseBinder

    bind, getId, wrapLookup, wrapLookupNullOnMissing

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass
  • Constructor Details

    • ASTBinder

      public ASTBinder()
  • Method Details

    • canBind

      public boolean canBind(Class<?> sourceType, Class<?> destinationType)
    • bindValue

      public <T> nz.org.riskscape.problem.ResultOrProblems<T> bindValue(nz.org.riskscape.engine.bind.BindingContext context, Object valueObj, Class<T> destinationType)