public class Parameter extends ProtoExpression
VOID_ASSIGNMENTS| Constructor and Description |
|---|
Parameter() |
Parameter(Dummy dummy) |
Parameter(java.lang.String name) |
Parameter(java.lang.String name,
Type type) |
Parameter(Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(Compiler compiler)
A Parameter never gets to invoke this.
|
Expression |
copy()
Returns a deep copy of this expression.
|
boolean |
isInternal() |
java.lang.String |
name() |
void |
setCheckedType()
This method sets the final unambiguously checked type of this expression, possibly
along with other final information that may be needed by the compiler for
generating code.
|
java.lang.String |
toString() |
void |
typeCheck(TypeChecker typeChecker)
This method type-checks this expression in the context of the specified
TypeChecker.
|
Expression |
typedCopy()
Returns a deep copy of this expression this and all its subexpressions share the
same type as their copy's counterparts.
|
checkedType, setCheckedType, setType, type, typeRefaddType, addTypes, boxSort, containsFreeName, enclosingScope, extent, getEnd, getStart, isConstant, isEquality, isFalse, isHiddenSlicing, isNull, isSelector, isSlicing, isTrue, isVoid, locationString, numberOfSubexpressions, otherTypes, parameters, sanitizeNames, sanitizeSorts, setCheckedTypeLocked, setEnd, setExtent, setOtherTypes, setStart, setSubexpression, shiftOffsets, shiftOffsets, sort, subexpression, substitute, typeCheck, typeCheck, typeCheckLockedpublic Parameter()
public Parameter(java.lang.String name)
public Parameter(Type type)
public Parameter(java.lang.String name,
Type type)
public Parameter(Dummy dummy)
public final Expression copy()
Expressioncopy in class Expressionpublic final Expression typedCopy()
ExpressiontypedCopy in class Expressionpublic final boolean isInternal()
public final java.lang.String name()
public final void setCheckedType()
ExpressionsetCheckedType in class Expressionpublic final void typeCheck(TypeChecker typeChecker) throws TypingErrorException
ExpressiontypeCheck in class ExpressionTypingErrorExceptionpublic final void compile(Compiler compiler)
compile in class Expressionpublic final java.lang.String toString()
toString in class java.lang.Object