1 5 package org.nfunk.jep.evaluation; 6 7 import org.nfunk.jep.function.*; 8 12 public class CommandElement { 13 public final static int VAR = 0; 14 public final static int CONST = 1; 15 public final static int FUNC = 2; 16 private int type; 17 private String varName; 18 private PostfixMathCommandI pfmc; 19 private int nParam; 20 private Object value; 21 22 25 public final PostfixMathCommandI getPFMC() { 26 return pfmc; 27 } 28 29 32 public final int getType() { 33 return type; 34 } 35 36 39 public final Object getValue() { 40 return value; 41 } 42 43 46 public final String getVarName() { 47 return varName; 48 } 49 50 53 public final int getNumParam() { 54 return nParam; 55 } 56 57 60 public final void setPFMC(PostfixMathCommandI commandI) { 61 pfmc = commandI; 62 } 63 64 67 public final void setType(int i) { 68 type = i; 69 } 70 71 74 public final void setValue(Object object) { 75 value = object; 76 } 77 78 81 public final void setVarName(String string) { 82 varName = string; 83 } 84 85 88 public final void setNumParam(int i) { 89 nParam = i; 90 } 91 92 } 93 | Popular Tags |