alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
* <TD headers="primtype mirrored"> {@link BooleanType} * <TR> * <TD headers="primtype declared" colspan=2>byte * <TD headers="primtype mirrored">{@link ByteType} * <TR> * <TD headers="primtype declared" colspan=2>char * <TD headers="primtype mirrored">{@link CharType} * <TR> * <TD headers="primtype declared" colspan=2>double * <TD headers="primtype mirrored">{@link DoubleType} * <TR> * <TD headers="primtype declared" colspan=2>float * <TD headers="primtype mirrored">{@link FloatType} * <TR> * <TD headers="primtype declared" colspan=2>int * <TD headers="primtype mirrored">{@link IntegerType} * <TR> * <TD headers="primtype declared" colspan=2>long * <TD headers="primtype mirrored">{@link LongType} * <TR> * <TD headers="primtype declared" colspan=2>short * <TD headers="primtype mirrored">{@link ShortType} * <TR> * <TD headers="primtype declared" colspan=2>void * <TD headers="primtype mirrored">{@link VoidType} * <TR BGCOLOR="#EEEEFF"> * <TH id="reftype" colspan=3>Subinterfaces of {@link ReferenceType} * <TR BGCOLOR="#EEEEFF"> * <TH id="declared2" align="left">Type declared in target as * <TH id="example2" align="left">For example * <TH id="mirrored2" align="left">Is mirrored as an instance of * <TR> * <TD headers="reftype declared2">a class * <TD headers="reftype example2">Date * <TD headers="reftype mirrored2">{@link ClassType} * <TR> * <TD headers="reftype declared2">an interface * <TD headers="reftype example2">Runnable * <TD headers="reftype mirrored2">{@link InterfaceType} * <TR> * <TD headers="reftype declared2">an array * <TD headers="reftype example2">  * <TD headers="reftype mirrored2">{@link ArrayType} * <TR> * <TD headers="reftype declared2">an array * <TD headers="reftype example2">int[] * <TD headers="reftype mirrored2">{@link ArrayType} whose * {@link ArrayType#componentType() componentType()} is * {@link IntegerType}</TD> * <TR> * <TD headers="reftype declared2">an array * <TD headers="reftype example2">Date[] * <TD headers="reftype mirrored2">{@link ArrayType} whose * {@link ArrayType#componentType() componentType()} is * {@link ClassType}</TD> * <TR> * <TD headers="reftype declared2">an array * <TD headers="reftype example2">Runnable[] * <TD headers="reftype mirrored2">{@link ArrayType} whose * {@link ArrayType#componentType() componentType()} is * {@link InterfaceType}</TD> * </TABLE> * * @see PrimitiveType Subinterface PrimitiveType * @see ReferenceType Subinterface ReferenceType * @see Value Value - for relationship between Type and Value * @see Field#type() Field.type() - for usage examples * * @author Robert Field * @author Gordon Hirsch * @author James McIlree * @since 1.3 */ @jdk.Exported public interface Type extends Mirror { /** * Returns the JNI-style signature for this type. * <p> * For primitive classes * the returned signature is the signature of the corresponding primitive * type; for example, "I" is returned as the signature of the class * represented by {@link java.lang.Integer#TYPE}. * * @see <a href="doc-files/signature.html">Type Signatures * @return the string containing the type signature. */ String signature(); /** * @return a text representation of this type. */ String name(); }

Other Java examples (source code examples)

Here is a short list of links related to this Java Type.java source code file:

Java example source code file (Type.java)

This example Java source code file (Type.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

mirror, string, type

The Type.java Java example source code

/*
 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

package com.sun.jdi;

/**
 * The mirror for a type in the target VM.
 * This interface is the root of a type hierarchy encompassing primitive
 * types and reference types.
 * <P>
 * A Type may be used to represent a run-time type:
 * <BLOCKQUOTE>
 *   {@link Value}.type()
 * </BLOCKQUOTE>
 * or a compile-time type:
 * <BLOCKQUOTE>
 *  {@link Field#type()} <BR>
 *  {@link Method#returnType()} <BR>
 *  {@link Method#argumentTypes()} <BR>
 *  {@link LocalVariable#type()} <BR>
 *  {@link ArrayType#componentType()}
 * </BLOCKQUOTE>
 * <P>
 * The following table illustrates which subinterfaces of Type
 * are used to mirror types in the target VM --
 * <TABLE BORDER=1 SUMMARY="Maps each type declared in target to a mirrored
 *  instance of a subinterface of PrimitiveType or ReferenceType">
 * <TR BGCOLOR="#EEEEFF">
 *   <TH id="primtype" colspan=3>Subinterfaces of {@link PrimitiveType}
 * <TR BGCOLOR="#EEEEFF">
 *   <TH id="declared" align="left" colspan=2>Type declared in target as
 *   <TH id="mirrored" align="left">Is mirrored as an instance of
 * <TR>
 *   <TD headers="primtype declared" colspan=2>boolean
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.