Package org.jruby.ast.java_signature
Class TypeNode
java.lang.Object
org.jruby.ast.java_signature.TypeNode
- All Implemented Interfaces:
AnnotationExpression
- Direct Known Subclasses:
PrimitiveTypeNode,ReferenceTypeNode
Base class for all typed nodes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AnnotationVisitor<T> visitor) Accept for the visitor pattern.booleanGet the name of the class with all of its potential generic glory.getName()Get the boxed or wrapper class name of the type.inthashCode()booleanisArray()booleanbooleanisTyped()booleanisVoid()toString()
-
Field Details
-
name
-
-
Constructor Details
-
TypeNode
-
-
Method Details
-
getName
-
isPrimitive
public boolean isPrimitive() -
isVoid
public boolean isVoid() -
getWrapperName
Get the boxed or wrapper class name of the type. Note: this will only return something different for primitive types. -
getFullyTypedName
Get the name of the class with all of its potential generic glory. -
isTyped
public boolean isTyped() -
isArray
public boolean isArray() -
accept
Accept for the visitor pattern.- Specified by:
acceptin interfaceAnnotationExpression- Parameters:
visitor- the visitor
-
equals
-
hashCode
public int hashCode() -
toString
-