Class: Norikra::UDFSpecHelper::UDFAggregationInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/norikra/udf_spec_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ UDFAggregationInstance

Returns a new instance of UDFAggregationInstance.



63
64
65
# File 'lib/norikra/udf_spec_helper.rb', line 63

def initialize(instance)
  @func = instance
end

Instance Method Details

#_call(type, *args) ⇒ Object



67
68
69
# File 'lib/norikra/udf_spec_helper.rb', line 67

def _call(type, *args)
  self.send(type, *args)
end

#clearObject

public void clear()



86
# File 'lib/norikra/udf_spec_helper.rb', line 86

def clear; @func.clear; end

#enter(*args) ⇒ Object

public void enter(Object value)



72
# File 'lib/norikra/udf_spec_helper.rb', line 72

def enter(*args); @func.enter(*args); end

#getValueObject

public Object getValue()



75
76
77
78
79
80
81
82
83
84
# File 'lib/norikra/udf_spec_helper.rb', line 75

def getValue # public Object getValue()
  v = @func.getValue
  if v.respond_to?(:to_hash)
    v.to_hash
  elsif v.respond_to?(:to_a)
    v.to_a
  else
    v
  end
end

#getValueTypeObject

public Class getValueType()



71
# File 'lib/norikra/udf_spec_helper.rb', line 71

def getValueType; @func.getValueType; end

#leave(*args) ⇒ Object

public void leave(Object value)



73
# File 'lib/norikra/udf_spec_helper.rb', line 73

def leave(*args); @func.leave(*args); end