|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcode.term.TermImplBuiltin
public abstract class TermImplBuiltin
Term representation for built in terms (eg ints, chars, ect).
| Field Summary | |
|---|---|
private static java.lang.IllegalStateException |
argException
|
| Constructor Summary | |
|---|---|
protected |
TermImplBuiltin()
Creates a new TepmImplBuiltin. |
| Method Summary | |
|---|---|
Term[] |
getArgument()
Gets the argument attribute of the TermImplBuiltin object |
Term |
getArgument(byte number)
Throws the argument exception since built ins do not have arguments |
Instruction[] |
getCode()
This is no code for rewritting builtins so this returns an empty list. |
byte |
getKind()
Returns the kind of this term. |
int |
getRoot()
Returns the root id of this term. |
java.lang.String |
getRootSymbol()
Returns the root symbol of this term. |
boolean |
isHNF()
Returns true since all builtins are in head normal form. |
boolean |
isNF()
Returns true since all builtins are in normal form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface code.term.TermImpl |
|---|
accept |
| Field Detail |
|---|
private static final java.lang.IllegalStateException argException
| Constructor Detail |
|---|
protected TermImplBuiltin()
| Method Detail |
|---|
public java.lang.String getRootSymbol()
getRootSymbol in interface TermImplpublic int getRoot()
getRoot in interface TermImplpublic Term[] getArgument()
getArgument in interface TermImplpublic Term getArgument(byte number)
getArgument in interface TermImplnumber - Description of the Parameter
public byte getKind()
getKind in interface TermImplpublic boolean isHNF()
isHNF in interface TermImplpublic boolean isNF()
isNF in interface TermImplpublic Instruction[] getCode()
getCode in interface TermImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||