KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gnu > expr > LangExp


1 // Copyright (c) 2004 Per M.A. Bothner.
2
// This is free software; for terms and warranty disclaimer see ./COPYING.
3

4 package gnu.expr;
5 import gnu.mapping.*;
6
7 /** A language-specific expression. */
8
9 public class LangExp extends Expression
10 {
11   Object JavaDoc hook;
12
13   public Object JavaDoc getLangValue () { return hook; }
14   public void setLangValue (Object JavaDoc value) { hook = value; }
15
16   public LangExp () { }
17
18   public LangExp (Object JavaDoc value) { this.hook = value; }
19
20   protected boolean mustCompile () { return false; }
21
22   public void print (OutPort out)
23   {
24     out.print("(LangExp ???)");
25   }
26
27   protected Expression walk (ExpWalker walker)
28   {
29     return walker.walkLangExp(this);
30   }
31
32   public void compile (Compilation comp, Target target)
33   {
34     throw new RuntimeException JavaDoc("compile called on LangExp");
35   }
36 }
37
Popular Tags