Class NewExpression

    • Constructor Detail

      • NewExpression

        public NewExpression()
        Constructs a BeanMethodCallExpression given an ISymbolTable instance.
    • Method Detail

      • getArgTypes

        public IType[] getArgTypes()
        Specified by:
        getArgTypes in interface INewExpression
        Returns:
        An array of IType for the arguments of the method call.
      • setArgTypes

        public void setArgTypes​(IType... argTypes)
        Parameters:
        argTypes - An array of IType for the arguments of the method call.
      • setArgs

        public void setArgs​(Expression[] args)
        Parameters:
        args - An array of expressions for corresponding to the arguments in the expression.
      • setArgPosition

        public void setArgPosition​(int iArgPos)
      • setConstructor

        public void setConstructor​(IConstructorInfo constructor)
        The constructor for the new operation.

        The properties: Constructor, ValueExpressions, and SizeExpression are mutually exclusive.

      • setValueExpressions

        public void setValueExpressions​(java.util.List<Expression> valueExpressions)
        The value expression for the new array operation.

        The properties: Constructor, ValueExpressions, and SizeExpression are mutually exclusive.

      • addSizeExpression

        public void addSizeExpression​(Expression sizeExpression)
        The size expression for the new array operation.

        The properties: Constructor, ValueExpressions, and SizeExpression are mutually exclusive.

      • getArrayClass

        private java.lang.Class<?> getArrayClass​(IType type)
      • getComponentClass

        private java.lang.Class<?> getComponentClass​(IType type)
      • getClassForRareCaseWhenRunningIJEditorProjectWhereGosuCoreJavaTypesAreSourceBased

        private java.lang.Class<?> getClassForRareCaseWhenRunningIJEditorProjectWhereGosuCoreJavaTypesAreSourceBased​(IType type)
      • toString

        public java.lang.String toString()
        Description copied from class: Expression
        Subclasses should return a String representing the parsed expression.
        Specified by:
        toString in class Expression
      • setAnonymousClass

        public void setAnonymousClass​(boolean anonymous)
      • getNamedArgOrder

        public int[] getNamedArgOrder()
      • setNamedArgOrder

        public void setNamedArgOrder​(int[] namedArgOrder)