org.jruby.ast.java_signature
Class PrimitiveTypeNode

java.lang.Object
  extended by org.jruby.ast.java_signature.TypeNode
      extended by org.jruby.ast.java_signature.PrimitiveTypeNode

public class PrimitiveTypeNode
extends TypeNode

For Java primitive types: byte, short, int, long, char, float, double, boolean, void


Field Summary
static PrimitiveTypeNode BOOLEAN
           
static PrimitiveTypeNode BYTE
           
static PrimitiveTypeNode CHAR
           
static PrimitiveTypeNode DOUBLE
           
static PrimitiveTypeNode FLOAT
           
static PrimitiveTypeNode INT
           
static PrimitiveTypeNode LONG
           
static PrimitiveTypeNode SHORT
           
static PrimitiveTypeNode VOID
           
 
Fields inherited from class org.jruby.ast.java_signature.TypeNode
name
 
Constructor Summary
protected PrimitiveTypeNode(java.lang.String name, java.lang.String wrapperName)
           
 
Method Summary
 java.lang.String getWrapperName()
          Get the boxed or wrapper class name of the type.
 boolean isPrimitive()
           
 boolean isVoid()
           
 
Methods inherited from class org.jruby.ast.java_signature.TypeNode
equals, getFullyTypedName, getName, hashCode, isArray, isTyped, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BYTE

public static final PrimitiveTypeNode BYTE

SHORT

public static final PrimitiveTypeNode SHORT

INT

public static final PrimitiveTypeNode INT

LONG

public static final PrimitiveTypeNode LONG

CHAR

public static final PrimitiveTypeNode CHAR

FLOAT

public static final PrimitiveTypeNode FLOAT

DOUBLE

public static final PrimitiveTypeNode DOUBLE

BOOLEAN

public static final PrimitiveTypeNode BOOLEAN

VOID

public static final PrimitiveTypeNode VOID
Constructor Detail

PrimitiveTypeNode

protected PrimitiveTypeNode(java.lang.String name,
                            java.lang.String wrapperName)
Method Detail

isPrimitive

public boolean isPrimitive()
Overrides:
isPrimitive in class TypeNode

isVoid

public boolean isVoid()
Overrides:
isVoid in class TypeNode

getWrapperName

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

Overrides:
getWrapperName in class TypeNode


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