public class New extends TypeOperator implements ConstructorReference, ExpressionStatement, ReferencePrefix, ReferenceSuffix, TypeDeclarationContainer
| Modifier and Type | Field and Description | 
|---|---|
protected ReferencePrefix | 
accessPath  | 
protected ClassDeclaration | 
anonymousClass  | 
typeReference| Constructor and Description | 
|---|
New(Expression[] arguments,
   TypeReference type,
   ReferencePrefix rp)
Constructor for the transformation of COMPOST ASTs to KeY. 
 | 
New(ExtList children,
   ReferencePrefix rp)
Constructor for the transformation of COMPOST ASTs to KeY. 
 | 
New(ExtList children,
   ReferencePrefix rp,
   PositionInfo pi)
Constructor for the transformation of COMPOST ASTs to KeY. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getArity()
getArity() == getASTchildren().size() 
 | 
ProgramElement | 
getChildAt(int index)
Returns the child at the specified index in this node's "virtual"
      child array 
 | 
int | 
getChildCount()
Returns the number of children of this node. 
 | 
ClassDeclaration | 
getClassDeclaration()  | 
SourceElement | 
getFirstElement()
Finds the source element that occurs first in the source. 
 | 
SourceElement | 
getFirstElementIncludingBlocks()
Finds the source element that occurs first in the source. 
 | 
SourceElement | 
getLastElement()
Finds the source element that occurs last in the source. 
 | 
int | 
getNotation()  | 
int | 
getPrecedence()
0 is the "highest" precedence (obtained by parantheses),
  13 the "lowest". 
 | 
ReferencePrefix | 
getReferencePrefix()
Get reference prefix. 
 | 
TypeDeclaration | 
getTypeDeclarationAt(int index)  | 
int | 
getTypeDeclarationCount()
Get the number of type declarations in this container. 
 | 
void | 
prettyPrint(PrettyPrinter p)
Pretty printing the source element. 
 | 
ReferencePrefix | 
setReferencePrefix(ReferencePrefix r)  | 
void | 
visit(Visitor v)
calls the corresponding method of a visitor in order to
 perform some action/transformation on this element 
 | 
getKeYJavaType, getKeYJavaType, getTypeReference, getTypeReferenceAt, getTypeReferenceCountgetArguments, getExpressionAt, getExpressionCount, isLeftAssociative, isToBeParenthesized, precedes, reuseSignaturecompatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrintMaingetEndPosition, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetArgumentsgetExpressionAt, getExpressionCountgetComments, matchequalsModRenaming, getEndPosition, getPositionInfo, getRelativePosition, getStartPositiongetKeYJavaTypeprotected final ClassDeclaration anonymousClass
protected final ReferencePrefix accessPath
public New(ExtList children, ReferencePrefix rp)
children - the children of this AST element as KeY classes.
          a ClassDeclaration (in case of an anonymous class decl)
          a TypeReference (the referred type)
                2 of Expression (the first Expression as left hand
                        side, the second as right hand side), 
                Comments; 
              does NOT contain: a ReferencePrefix for the constructor
                as it might be mixed up with the TypeReferencerp - a ReferencePrefix as access path for the constructorpublic New(ExtList children, ReferencePrefix rp, PositionInfo pi)
children - the children of this AST element as KeY classes.
          a ClassDeclaration (in case of an anonymous class decl)
          a TypeReference (the referred type)
                2 of Expression (the first Expression as left hand
                        side, the second as right hand side), 
                Comments; 
              does NOT contain: a ReferencePrefix for the constructor
                as it might be mixed up with the TypeReferencerp - a ReferencePrefix as access path for the constructorpublic New(Expression[] arguments, TypeReference type, ReferencePrefix rp)
type - a TypeReference (the referred type)rp - a ReferencePrefix as access path for the constructorpublic SourceElement getFirstElement()
JavaSourceElementgetFirstElement in interface SourceElementgetFirstElement in class OperatorJavaSourceElement.toSource(), 
JavaSourceElement.getStartPosition()public SourceElement getFirstElementIncludingBlocks()
SourceElementgetFirstElementIncludingBlocks in interface SourceElementgetFirstElementIncludingBlocks in class OperatorSourceElement.getStartPosition()public SourceElement getLastElement()
JavaSourceElementgetLastElement in interface SourceElementgetLastElement in class OperatorJavaSourceElement.toSource(), 
JavaSourceElement.getEndPosition()public int getArity()
Operatorpublic int getPrecedence()
OperatorgetPrecedence in class Operatorpublic int getNotation()
getNotation in class Operatorpublic ClassDeclaration getClassDeclaration()
public int getTypeDeclarationCount()
TypeDeclarationContainergetTypeDeclarationCount in interface TypeDeclarationContainerpublic TypeDeclaration getTypeDeclarationAt(int index)
getTypeDeclarationAt in interface TypeDeclarationContainerpublic int getChildCount()
OperatorgetChildCount in interface NonTerminalProgramElementgetChildCount in class Operatorpublic ProgramElement getChildAt(int index)
OperatorgetChildAt in interface NonTerminalProgramElementgetChildAt in class Operatorindex - an index into this node's "virtual" child arraypublic ReferencePrefix getReferencePrefix()
getReferencePrefix in interface ReferencePrefixpublic void visit(Visitor v)
SourceElementvisit in interface SourceElementv - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.public ReferencePrefix setReferencePrefix(ReferencePrefix r)