Class StatementMetaTypeChooser

    • Constructor Detail

      • StatementMetaTypeChooser

        public StatementMetaTypeChooser()
    • Method Detail

      • resolveType

        public ClassNode resolveType​(Expression exp,
                                     ClassNode current)
        Description copied from interface: TypeChooser
        Resolve the type of an expression. Depending on the implementations, the returned type may be the declared type or an inferred type.
        Specified by:
        resolveType in interface TypeChooser
        exp - the expression for which the type must be returned.
        current - the classnode this expression belongs to
        the resolved type.