Class TypeNode

java.lang.Object
org.jruby.ast.java_signature.TypeNode
All Implemented Interfaces:
AnnotationExpression
Direct Known Subclasses:
PrimitiveTypeNode, ReferenceTypeNode

public class TypeNode extends Object implements AnnotationExpression
Base class for all typed nodes
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • TypeNode

      public TypeNode(String name)
  • Method Details

    • getName

      public String getName()
    • isPrimitive

      public boolean isPrimitive()
    • isVoid

      public boolean isVoid()
    • getWrapperName

      public String getWrapperName()
      Get the boxed or wrapper class name of the type. Note: this will only return something different for primitive types.
    • getFullyTypedName

      public String getFullyTypedName()
      Get the name of the class with all of its potential generic glory.
    • isTyped

      public boolean isTyped()
    • isArray

      public boolean isArray()
    • accept

      public <T> T accept(AnnotationVisitor<T> visitor)
      Accept for the visitor pattern.
      Specified by:
      accept in interface AnnotationExpression
      Parameters:
      visitor - the visitor
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object