org.jruby.ast.java_signature
Class TypeNode

java.lang.Object
  extended by org.jruby.ast.java_signature.TypeNode
Direct Known Subclasses:
PrimitiveTypeNode, ReferenceTypeNode

public class TypeNode
extends java.lang.Object

Base class for all typed nodes


Field Summary
protected  java.lang.String name
           
 
Constructor Summary
TypeNode(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getFullyTypedName()
          Get the name of the class with all of its potential generic glory.
 java.lang.String getName()
           
 java.lang.String getWrapperName()
          Get the boxed or wrapper class name of the type.
 int hashCode()
           
 boolean isArray()
           
 boolean isPrimitive()
           
 boolean isTyped()
           
 boolean isVoid()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Constructor Detail

TypeNode

public TypeNode(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

isPrimitive

public boolean isPrimitive()

isVoid

public boolean isVoid()

getWrapperName

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


getFullyTypedName

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


isTyped

public boolean isTyped()

isArray

public boolean isArray()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2009 JRuby Team. All Rights Reserved.