|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.typedef.FieldModifier
Abstraction of a STEP field modifier.
NOTE: Field modifiers are only meaningful before a type definition has been resolved.
FieldDef
,
TypeDef.resolve()
Constructor Summary | |
FieldModifier(String target,
boolean clean)
Create a new field modifier. |
Method Summary | |
FieldModifier |
addAttribute(Attribute attribute)
Add an attribute to this modifier. |
Object |
clone()
Get a copy of this modifier. |
List |
getAttributes()
Get the attributes held by this modifier. |
String |
getTarget()
Get the name of the target field for this modifier. |
boolean |
isClean()
Does this modifier cause previous (including inherited) attributes to be discarded? |
String |
toStepDL()
Get this modifier as STEP-DL text. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FieldModifier(String target, boolean clean)
target
- the field to apply this modifier to.
NOTE: The target may be a qualified name.clean
- override (discard) previous attributes?Method Detail |
public String getTarget()
NOTE: The target may be a qualified name.
public boolean isClean()
public List getAttributes()
public FieldModifier addAttribute(Attribute attribute)
The current modifier is returned by this method to allow chaining of multiple calls or immediate addition to a newly created instance. For example,
FieldModifier m = new FieldModifier(..).addAttribute(..)...
public Object clone()
clone
in class Object
public String toStepDL()
toStepDL
in interface StepDef
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |