|
|||||||||
| Home >> All >> fzi >> injectj >> [ weavepoint overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
fzi.injectj.weavepoint
Class BoolType

java.lang.Objectfzi.injectj.weavepoint.Type
fzi.injectj.weavepoint.SimpleType
fzi.injectj.weavepoint.BoolType
- public class BoolType
- extends SimpleType
| Field Summary | |
protected boolean |
initialized
|
protected boolean |
value
|
| Fields inherited from class fzi.injectj.weavepoint.Type |
ACCESS, ASSIGNMENT, ATTRIBUTE, BOOL, CLASS, DECLARATION, EXCEPTION, EXCEPTIONTHROW, EXPLICIT, INTEGER, LIBRARY, LIST, LIST_MASK, listSeparator, METHOD, PARAMETER, ROOT, STRING, UNKNOWN, VOID |
| Constructor Summary | |
BoolType()
Constructs an uninitialzed bool instance |
|
BoolType(boolean init)
Constructs an initialized bool instance |
|
BoolType(java.lang.String init)
Constructs an initialized bool instance using a string. |
|
| Method Summary | |
void |
assignType(Type newValue)
Assigns the content of newValue to the current type content. |
boolean |
equals(java.lang.Object obj)
Determine whether this Object is semantically equal to another Object. |
java.lang.String |
getAskIdentifier()
The string representation of the current value used in the "Ask" dialog. |
boolean |
getBoolValue()
Returns the current bool value |
Type |
getProperty(fzi.injectj.node.AliasProperty property,
fzi.injectj.util.Environment environment)
Get the value of the property specified by the parameter 'property'. |
int |
getTypeID()
|
boolean |
isInitialized()
Check whether this instance is initialized or not. |
void |
setBoolValue(boolean newValue)
Set the bool value to the new value. |
void |
setProperty(fzi.injectj.node.AliasProperty property,
fzi.injectj.node.AssignExpression rightValue,
fzi.injectj.util.Environment environment)
Set the property specified by 'property' to the new value 'rightValue'. |
| Methods inherited from class fzi.injectj.weavepoint.Type |
getListSeparator, getTypeName, getTypeNameForTypeID |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
value
protected boolean value
initialized
protected boolean initialized
| Constructor Detail |
BoolType
public BoolType()
- Constructs an uninitialzed bool instance
BoolType
public BoolType(boolean init)
- Constructs an initialized bool instance
BoolType
public BoolType(java.lang.String init)
- Constructs an initialized bool instance using a string.
| Method Detail |
isInitialized
public boolean isInitialized()
- Check whether this instance is initialized or not.
- Specified by:
isInitializedin classSimpleType
setBoolValue
public void setBoolValue(boolean newValue)
- Set the bool value to the new value. If this instance wasn't initialized,
it will be initialized with the new value.
getAskIdentifier
public java.lang.String getAskIdentifier()
- The string representation of the current value used in the "Ask" dialog.
- Specified by:
getAskIdentifierin classType
getBoolValue
public boolean getBoolValue()
throws UninitializedTypeException
- Returns the current bool value
assignType
public void assignType(Type newValue) throws UninitializedTypeException
- Description copied from class:
Type - Assigns the content of newValue to the current type content. Currently this
is only allowed for simple types.
- Specified by:
assignTypein classType
getTypeID
public final int getTypeID()
getProperty
public Type getProperty(fzi.injectj.node.AliasProperty property, fzi.injectj.util.Environment environment) throws MalformedAliasusageException
- Description copied from class:
Type - Get the value of the property specified by the parameter 'property'.
- Specified by:
getPropertyin classType
setProperty
public void setProperty(fzi.injectj.node.AliasProperty property, fzi.injectj.node.AssignExpression rightValue, fzi.injectj.util.Environment environment) throws MalformedAliasusageException
- Description copied from class:
Type - Set the property specified by 'property' to the new value 'rightValue'.
This feature is not used (and implemented) in the current version of Inject/J.
- Specified by:
setPropertyin classType
equals
public boolean equals(java.lang.Object obj)
- Description copied from class:
java.lang.Object - Determine whether this Object is semantically equal
to another Object.
There are some fairly strict requirements on this method which subclasses must follow:
- It must be transitive. If
a.equals(b)andb.equals(c), thena.equals(c)must be true as well. - It must be symmetric.
a.equals(b)andb.equals(a)must have the same value. - It must be reflexive.
a.equals(a)must always be true. - It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
a.equals(null)must be false.- It must be consistent with hashCode(). That is,
a.equals(b)must implya.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.
This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for
a.equals(b)to be true even thougha.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.In general, the Collections API (
java.util) use theequalsmethod rather than the==operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.The default implementation returns
this == o. - It must be transitive. If
|
|||||||||
| Home >> All >> fzi >> injectj >> [ weavepoint overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC