Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

engine
Class ConnectionDescription  view ConnectionDescription download ConnectionDescription.java

java.lang.Object
  extended byengine.Symbol
      extended byengine.ConnectionDescription
All Implemented Interfaces:
java.io.Serializable

class ConnectionDescription
extends Symbol

A connection from inside a module to the outside world. It may contain a selection of ports bundled together under a single name visible from outside or an expression to be assigned to the port designated by the name (in a named parameter list).


Field Summary
static int blockType
           
static int connType
           
static int funcType
           
static int intType
           
(package private)  int lineNo
           
static int moduleArType
           
static int moduleType
           
 java.lang.String name
           
static int paramType
           
(package private)  ExpressionDescription portExpDesc
          The ports bundled inside this name
static int portType
           
(package private)  boolean preparedForContSelection
           
static int realType
           
static int regType
           
static int taskType
           
(package private)  int type
          The in/out/both type of the connection
static int udpType
           
static int wireType
           
 
Constructor Summary
(package private) ConnectionDescription(java.lang.String name, int lineNo, ExpressionDescription portExpDesc)
           
 
Method Summary
(package private)  int computeType(DefaultNameSpaceDescription nsd)
          If this expression is a port selection, computes the overall type: if all ports have tha same type with the exception of the inuout ones, the overall type is the same.
 int getType()
           
(package private)  java.lang.Object instantiate(NameSpace ns, middle.ScopeNode thisScope)
           
(package private)  void prepareForContSelection()
          Makes this expression a continuous expression
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

int type
The in/out/both type of the connection


portExpDesc

ExpressionDescription portExpDesc
The ports bundled inside this name


preparedForContSelection

boolean preparedForContSelection

name

public java.lang.String name

lineNo

int lineNo

regType

public static final int regType
See Also:
Constant Field Values

wireType

public static final int wireType
See Also:
Constant Field Values

paramType

public static final int paramType
See Also:
Constant Field Values

portType

public static final int portType
See Also:
Constant Field Values

realType

public static final int realType
See Also:
Constant Field Values

intType

public static final int intType
See Also:
Constant Field Values

funcType

public static final int funcType
See Also:
Constant Field Values

taskType

public static final int taskType
See Also:
Constant Field Values

blockType

public static final int blockType
See Also:
Constant Field Values

moduleType

public static final int moduleType
See Also:
Constant Field Values

udpType

public static final int udpType
See Also:
Constant Field Values

connType

public static final int connType
See Also:
Constant Field Values

moduleArType

public static final int moduleArType
See Also:
Constant Field Values
Constructor Detail

ConnectionDescription

ConnectionDescription(java.lang.String name,
                      int lineNo,
                      ExpressionDescription portExpDesc)
Method Detail

computeType

int computeType(DefaultNameSpaceDescription nsd)
          throws ParseException
If this expression is a port selection, computes the overall type: if all ports have tha same type with the exception of the inuout ones, the overall type is the same. If all the ports are inout, the overall is inout. Note that the if a port identifier is from another module (a fqn with more than one node), a parse exception is thrown else, an exception is thrown


instantiate

java.lang.Object instantiate(NameSpace ns,
                             middle.ScopeNode thisScope)
                       throws ParseException
Specified by:
instantiate in class Symbol

prepareForContSelection

void prepareForContSelection()
                       throws ParseException
Makes this expression a continuous expression


getType

public int getType()
Specified by:
getType in class Symbol

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).