uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables
Class VariableExpressions

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables.VariableExpressions

public final class VariableExpressions
extends Object

Static utilities for working with variables, constants and variable expressions.

Author:
Matthew pocock

Method Summary
static Constant constant(String value)
           
static CommandLine<String> substitute(Map<Variable,Constant> bindings, CommandLine<VariableExpression> cline)
           
static List<VariableOrConstant> substitute(Map<Variable,Constant> bindings, List<VariableOrConstant> vocs)
           
static VariableExpression substitute(Map<Variable,Constant> bindings, VariableExpression ve)
           
static VariableOrConstant substitute(Map<Variable,Constant> bindings, VariableOrConstant voc)
           
static List<VariableExpression> substituteAll(Map<Variable,Constant> bindings, List<VariableExpression> ves)
           
static String substituteAndStringify(Map<Variable,Constant> bindings, VariableExpression ve)
           
static Set<Variable> unbound(VariableExpression ve)
           
static Set<Variable> unused(Map<Variable,Constant> bindings, VariableExpression ve)
           
static Variable variable(String name)
           
static VariableExpression variableExpression(List<VariableOrConstant> voc)
           
static VariableExpression variableExpression(VariableOrConstant... voc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

variable

public static Variable variable(String name)

constant

public static Constant constant(String value)

variableExpression

public static VariableExpression variableExpression(List<VariableOrConstant> voc)

variableExpression

public static VariableExpression variableExpression(VariableOrConstant... voc)

unbound

public static Set<Variable> unbound(VariableExpression ve)

unused

public static Set<Variable> unused(Map<Variable,Constant> bindings,
                                   VariableExpression ve)

substituteAll

public static List<VariableExpression> substituteAll(Map<Variable,Constant> bindings,
                                                     List<VariableExpression> ves)

substitute

public static VariableExpression substitute(Map<Variable,Constant> bindings,
                                            VariableExpression ve)

substitute

public static List<VariableOrConstant> substitute(Map<Variable,Constant> bindings,
                                                  List<VariableOrConstant> vocs)

substitute

public static VariableOrConstant substitute(Map<Variable,Constant> bindings,
                                            VariableOrConstant voc)

substituteAndStringify

public static String substituteAndStringify(Map<Variable,Constant> bindings,
                                            VariableExpression ve)

substitute

public static CommandLine<String> substitute(Map<Variable,Constant> bindings,
                                             CommandLine<VariableExpression> cline)


Copyright © 2006-2008. All Rights Reserved.