Class TypeNode
java.lang.Object
com.google.api.generator.engine.ast.TypeNode
- All Implemented Interfaces:
AstNode,Comparable<TypeNode>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final TypeNodestatic final Reference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(AstNodeVisitor visitor) Writes the syntatically-correct Java code representation of this node.static TypeNode.Builderbuilder()intstatic TypeNodecreateArrayTypeOf(TypeNode type) static TypeNodebooleaninthashCode()abstract booleanisArray()static booleanisBoxedType(TypeNode type) static booleanisExceptionType(TypeNode type) static booleanisFloatingPointType(TypeNode type) static booleanisNumericType(TypeNode type) booleanbooleanbooleanstatic booleanisReferenceType(TypeNode type) booleanisSupertypeOrEquals(TypeNode other) abstract Referenceabstract TypeNode.TypeKindtypeKind()static TypeNodewithExceptionClazz(Class<?> clazz) static TypeNodewithReference(Reference reference)
-
Field Details
-
WILDCARD_REFERENCE
-
BOOLEAN
-
BYTE
-
CHAR
-
DOUBLE
-
FLOAT
-
INT
-
LONG
-
SHORT
-
BOOLEAN_OBJECT
-
BYTE_OBJECT
-
CHAR_OBJECT
-
DOUBLE_OBJECT
-
FLOAT_OBJECT
-
INT_OBJECT
-
LONG_OBJECT
-
SHORT_OBJECT
-
CLASS_OBJECT
-
BYTESTRING
-
VALUE
-
VOID
-
NULL
-
OBJECT
-
STRING
-
VOID_OBJECT
-
THROWABLE
-
DEPRECATED
-
STRING_ARRAY
-
-
Constructor Details
-
TypeNode
public TypeNode()
-
-
Method Details
-
typeKind
-
isArray
public abstract boolean isArray() -
createArrayTypeOf
-
createElementTypeFromArrayType
-
reference
-
compareTo
- Specified by:
compareToin interfaceComparable<TypeNode>
-
builder
-
withReference
-
withExceptionClazz
-
isExceptionType
-
isReferenceType
-
isNumericType
-
isFloatingPointType
-
isBoxedType
-
isPrimitiveType
public boolean isPrimitiveType() -
isProtoPrimitiveType
public boolean isProtoPrimitiveType() -
isProtoEmptyType
public boolean isProtoEmptyType() -
isSupertypeOrEquals
-
accept
Description copied from interface:AstNodeWrites the syntatically-correct Java code representation of this node. -
equals
-
hashCode
public int hashCode()
-