public class CodeExpression
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeExpression.Code
The type of Code that determines how this Variable's
value should be evaluated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Variable.Key> |
dependsOn() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
eval() |
CodeExpression.Code |
getCode() |
java.lang.String |
getExpr() |
java.lang.String |
getHSpiceText(boolean inPar) |
EvalSpice.ParseException |
getParseException() |
java.lang.String |
getSpiceText() |
java.lang.String |
getVerilogText() |
int |
hashCode() |
boolean |
isJava() |
static void |
printStatistics(boolean verbose)
Print statistics about CodeExpressions.
|
static CodeExpression |
read(IdReader reader)
Read CodeExpression from SnapshotReader.
|
java.lang.String |
toString() |
static CodeExpression |
valueOf(java.lang.String expression,
CodeExpression.Code code) |
void |
write(IdWriter writer)
Write this CodeExpression to IdWriter.
|
public static CodeExpression valueOf(java.lang.String expression, CodeExpression.Code code)
public CodeExpression.Code getCode()
public boolean isJava()
public java.lang.String getExpr()
public java.util.Set<Variable.Key> dependsOn()
public EvalSpice.ParseException getParseException()
public java.lang.String getSpiceText()
public java.lang.String getHSpiceText(boolean inPar)
public java.lang.String getVerilogText()
public java.lang.Object eval()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void write(IdWriter writer) throws java.io.IOException
writer - where to write.java.io.IOExceptionpublic static CodeExpression read(IdReader reader) throws java.io.IOException
reader - from to write.java.io.IOExceptionpublic static void printStatistics(boolean verbose)
verbose - print all CodeExpressions