public class SpecialConstructorCall extends ProgramTransformer
new Class(...). Thereby it replaces the allocation
expression by a method reference to an implict method called
<init> that is mainly the constructor but in its
normalform.| Modifier and Type | Field and Description |
|---|---|
private static ProgramElementName |
NORMALFORM_IDENTIFIER |
| Constructor and Description |
|---|
SpecialConstructorCall(ProgramElement consRef)
creates the metaconstruct
|
| Modifier and Type | Method and Description |
|---|---|
ProgramElement |
transform(ProgramElement pe,
Services services,
SVInstantiations svInst)
transforms the constructor's body into its normalform and
returns the result.
|
body, getChildAt, getChildCount, getDimensions, getExpressionAt, getExpressionCount, getKeYJavaType, getKeYJavaType, getKeYJavaType, getLastElement, getName, getPackageReference, getProgramElementName, getReferencePrefix, getStatementAt, getStatementCount, getTypeReferenceAt, getTypeReferenceCount, name, neededInstantiations, needs, prettyPrint, setReferencePrefix, toString, visitcompatibleBlockSize, equals, equalsModRenaming, getArrayPos, hashCode, match, matchChildrengetComments, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchprivate static final ProgramElementName NORMALFORM_IDENTIFIER
public SpecialConstructorCall(ProgramElement consRef)
public ProgramElement transform(ProgramElement pe, Services services, SVInstantiations svInst)
transform in class ProgramTransformerpe - the ProgramElement on which the execution is performedservices - the Services with all necessary information
about the java programssvInst - the instantiations of the schemavariables