LangExp.java :  » Scripting » Kawa » gnu » expr » Java Open Source

Java Open Source » Scripting » Kawa 
Kawa » gnu » expr » LangExp.java
// Copyright (c) 2004  Per M.A. Bothner.
// This is free software;  for terms and warranty disclaimer see ./COPYING.

package gnu.expr;
import gnu.mapping.*;

/** A language-specific expression. */

public class LangExp extends Expression
{
  Object hook;

  public Object getLangValue () { return hook; }
  public void setLangValue (Object value) { hook = value; }

  public LangExp () { }

  public LangExp (Object value) { this.hook = value; }

  protected boolean mustCompile () { return false; }

  public void print (OutPort out)
  {
    out.print("(LangExp ???)");
  }

  protected Expression walk (ExpWalker walker)
  {
    return walker.walkLangExp(this);
  }

  public void compile (Compilation comp, Target target)
  {
    throw new RuntimeException("compile called on LangExp");
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.