RubyType

io.joern.rubysrc2cpg.datastructures.RubyType
case class RubyType(name: String, methods: List[RubyMethod], fields: List[RubyField]) extends TypeLike[RubyMethod, RubyField]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TypeLike[RubyMethod, RubyField]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def +(o: TypeLike[RubyMethod, RubyField]): TypeLike[RubyMethod, RubyField]

Adds the contents of the two types and produces a new type.

Adds the contents of the two types and produces a new type.

Value parameters

o

the other type-like.

Attributes

Returns

a type-like that is the combination of the two, with precedence to colliding contents to this type (LHS).

Definition Classes
TypeLike
def hasConstructor: Boolean

Inherited methods

protected def mergeFields(o: TypeLike[_, RubyField]): List[RubyField]

Helper method for creating the sum of two type-like's fields, while preferring this types' fields on collisions.

Helper method for creating the sum of two type-like's fields, while preferring this types' fields on collisions.

Value parameters

o

the other type-like.

Attributes

Returns

the combination of the two type-like's fields.

Inherited from:
TypeLike
protected def mergeMethods(o: TypeLike[RubyMethod, _]): List[RubyMethod]

Helper method for creating the sum of two type-like's methods, while preferring this types' methods on collisions.

Helper method for creating the sum of two type-like's methods, while preferring this types' methods on collisions.

Value parameters

o

the other type-like.

Attributes

Returns

the combination of the two type-like's methods.

Inherited from:
TypeLike
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product