|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.kit.Transformation
recoder.kit.TwoPassTransformation
recoder.kit.transformation.AppendMember
public class AppendMember
Syntactic transformation that adds the given MemberDeclaration to the list in the given TypeDeclaration at a convenient position. No checks for redundancy or vadility are performed, such as allowed modifiers, name ambiguity. The insert position is behind the last occurance of a member of the same type in the type declaration. If there is no matching member, a predefined order of member types is followed: fields - initializers - constructors - methods - member types.
| Field Summary |
|---|
| Fields inherited from class recoder.kit.Transformation |
|---|
EQUIVALENCE, IDENTITY, NO_PROBLEM |
| Constructor Summary | |
|---|---|
AppendMember(CrossReferenceServiceConfiguration sc,
boolean isVisible,
MemberDeclaration child,
TypeDeclaration parent)
Deprecated. Creates a new transformation object that adds the given MemberDeclaration to the list in the given TypeDeclaration at a convenient position. |
|
| Method Summary | |
|---|---|
ProblemReport |
analyze()
Deprecated. Finds out where to insert the new member. |
boolean |
isVisible()
Deprecated. Checks if this transformation is meant to be visible and shall report changes to the model. |
void |
transform()
Deprecated. Attaches the member at the proper position. |
| Methods inherited from class recoder.kit.TwoPassTransformation |
|---|
execute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AppendMember(CrossReferenceServiceConfiguration sc,
boolean isVisible,
MemberDeclaration child,
TypeDeclaration parent)
sc - the service configuration to use.isVisible - flag indicating if this transformation shall be visible.decl - the declaration to modify. may not be null and
must denote a valid identifier name.code - the modifier to create, encoded using the codes from
ModifierKit.| Method Detail |
|---|
public boolean isVisible()
Transformationtrue.
isVisible in class Transformationtrue.public ProblemReport analyze()
analyze in class TwoPassTransformationpublic void transform()
transform in class TwoPassTransformationjava.lang.IllegalStateException - if the analyzation has not been called.analyze()
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||