public class Dummy extends Expression
VOID_ASSIGNMENTS| Constructor and Description |
|---|
Dummy(Parameter parameter) |
Dummy(java.lang.String name) |
Dummy(Tables tables,
Parameter parameter) |
Dummy(Tables tables,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
Type |
checkedType()
A Dummy never gets to invoke this.
|
void |
compile(Compiler compiler)
A Dummy never gets to invoke this.
|
boolean |
containsFreeName(java.lang.String name)
Returns true iff the specified name occurs free in this expression.
|
Expression |
copy()
Returns a deep copy of this expression.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
name() |
Expression |
sanitizeNames(ParameterStack parameters)
This method returns the actual expression corresponding to this one after
eliminating all the Dummy expressions that occur
in it where names where read.
|
void |
sanitizeSorts(Enclosure enclosure)
A Dummy never gets to invoke this.
|
void |
setCheckedType()
A Dummy never gets to invoke this.
|
void |
setCheckedType(Type type)
A Dummy never gets to invoke this.
|
void |
setType(Type type)
This method forcibly sets this expression's type field, if it has one, to the
specified type.
|
Expression |
shiftOffsets(int intShift,
int realShift,
int objectShift,
int intDepth,
int realDepth,
int objectDepth)
A Dummy never gets to invoke this.
|
Expression |
substitute(java.util.HashMap substitution)
Returns the expression resulting from substituting all the free occurrences
of the parameters's names as specified by the given substitution.
|
Tables |
tables() |
java.lang.String |
toString() |
Type |
type()
This method returns the current type of this expression.
|
void |
typeCheck(TypeChecker typeChecker)
A Dummy never gets to invoke this.
|
Expression |
typedCopy()
Returns a deep copy of this expression this and all its subexpressions share the
same type as their copy's counterparts.
|
Type |
typeRef()
This method returns this expression's undereferenced type field if it has one.
|
addType, addTypes, boxSort, enclosingScope, extent, getEnd, getStart, isConstant, isEquality, isFalse, isHiddenSlicing, isNull, isSelector, isSlicing, isTrue, isVoid, locationString, numberOfSubexpressions, otherTypes, parameters, setCheckedTypeLocked, setEnd, setExtent, setOtherTypes, setStart, setSubexpression, shiftOffsets, sort, subexpression, typeCheck, typeCheck, typeCheckLockedpublic Dummy(java.lang.String name)
public Dummy(Tables tables, java.lang.String name)
public Dummy(Parameter parameter)
public Expression copy()
Expressioncopy in class Expressionpublic Expression typedCopy()
ExpressiontypedCopy in class Expressionpublic final Tables tables()
public final java.lang.String name()
public final boolean containsFreeName(java.lang.String name)
ExpressioncontainsFreeName in class Expressionpublic final Type type()
Expressiontype in class Expressionpublic final void setType(Type type)
ExpressionsetType in class Expressionpublic final Type typeRef()
ExpressiontypeRef in class Expressionpublic final Expression substitute(java.util.HashMap substitution)
Expressionsubstitute in class Expressionpublic Expression sanitizeNames(ParameterStack parameters)
ExpressionsanitizeNames in class Expressionpublic final Type checkedType()
checkedType in class Expressionpublic final void setCheckedType()
setCheckedType in class Expressionpublic final void setCheckedType(Type type)
setCheckedType in class Expressionpublic final Expression shiftOffsets(int intShift, int realShift, int objectShift, int intDepth, int realDepth, int objectDepth)
shiftOffsets in class Expressionpublic final void sanitizeSorts(Enclosure enclosure)
sanitizeSorts in class Expressionpublic final void typeCheck(TypeChecker typeChecker) throws TypingErrorException
typeCheck in class ExpressionTypingErrorExceptionpublic final void compile(Compiler compiler)
compile in class Expressionpublic final boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object