com.ph.pr.parser.vbs2java
Class DIM

java.lang.Object
  extended by com.ph.pr.parser.vbs2java.DIM
Direct Known Subclasses:
CONST

public class DIM
extends java.lang.Object

Acts as both a single variable and also has a hash map. Some code uses this as a hash map, some as a single variable

Author:
bobh

Field Summary
(package private)  java.lang.String contents
           
 DIM Item
           
private  java.util.HashMap map
          Key is uppercase string, Value is DIM objects
(package private)  java.lang.Class type
           
 
Constructor Summary
DIM()
           
DIM(java.math.BigDecimal num)
           
DIM(double d)
           
DIM(int i)
           
DIM(java.lang.String string)
           
 
Method Summary
 DIM decr()
          unusually this modifies the internals...
 boolean equals(java.lang.Object obj)
           
 DIM get(DIM dim)
           
 java.util.HashMap getCleanMap()
          Get rid of the DIMs and give back an all string (clean) hashmap
 java.util.Map getMap()
           
 int hashCode()
           
 DIM incr()
          unusually this modifies the internals...
 DIM Item(DIM dim)
           
 DIM length()
           
(package private)  DIM psyClone()
          TODO
 void put(DIM key, DIM value)
           
 void set(DIM dim)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Item

public DIM Item

map

private java.util.HashMap map
Key is uppercase string, Value is DIM objects


contents

java.lang.String contents

type

java.lang.Class type
Constructor Detail

DIM

public DIM(int i)

DIM

public DIM(java.lang.String string)

DIM

public DIM()

DIM

public DIM(double d)
Parameters:
d -

DIM

public DIM(java.math.BigDecimal num)
Parameters:
num -
Method Detail

psyClone

DIM psyClone()
TODO

Returns:

getMap

public java.util.Map getMap()

getCleanMap

public java.util.HashMap getCleanMap()
Get rid of the DIMs and give back an all string (clean) hashmap

Returns:

Item

public DIM Item(DIM dim)
Parameters:
key -
Returns:
item from hash map

decr

public DIM decr()
unusually this modifies the internals...


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

get

public DIM get(DIM dim)
Returns:
item from hash map

incr

public DIM incr()
unusually this modifies the internals...


length

public DIM length()

put

public void put(DIM key,
                DIM value)
Parameters:
dim - key
dim2 - value

set

public void set(DIM dim)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object