java.lang.Object
com.espertech.esper.common.internal.event.bean.core.PropertyStem

public class PropertyStem extends Object
Encapsulates the event property information available after introspecting an event's class members for getter methods.
  • Constructor Details

    • PropertyStem

      public PropertyStem(String propertyName, Method readMethod, EventPropertyType propertyType)
      Ctor.
      Parameters:
      propertyName - - name of property, from getter method
      readMethod - - read method to get value
      propertyType - - type of property
    • PropertyStem

      public PropertyStem(String propertyName, Field accessorField, EventPropertyType propertyType)
      Ctor.
      Parameters:
      propertyName - - name of property, from getter method
      accessorField - - field to get value from
      propertyType - - type of property
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Return the property name, for mapped and indexed properties this is just the property name without parantheses or brackets.
      Returns:
      property name
    • getPropertyType

      public EventPropertyType getPropertyType()
      Returns an enum indicating the type of property: simple, mapped, indexed.
      Returns:
      enum with property type info
    • getReadMethod

      public Method getReadMethod()
      Returns the read method. Can return null if the property is backed by a field..
      Returns:
      read method of null if field property
    • getAccessorField

      public Field getAccessorField()
      Returns the accessor field. Can return null if the property is backed by a method.
      Returns:
      accessor field of null if method property
    • getReturnType

      public EPTypeClass getReturnType(EPTypeClass underlyingEPType)
      Returns the type of the underlying method or field of the event property.
      Parameters:
      underlyingEPType - underlying type
      Returns:
      return type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object