Home | History | Annotate | Download | only in delta
      1 group deltas;
      2 
      3 
      4 ADDED(delta)  ::= "Added $ElementType(element=delta.to)$"
      5 
      6 
      7 REMOVED(delta) ::= "Removed $ElementType(element=delta.from)$"
      8 
      9 
     10 CHANGED(delta) ::= "$DeltaType(delta)$"
     11 
     12 
     13 DeltaType(delta) ::= "$({$delta.class.simpleName$})(delta)$"
     14 
     15 
     16 DeltaTypeSwitch(delta) ::= "$delta:({$delta.type$})(delta)$"
     17 
     18 
     19 MultiSubDelta(desc, deltas) ::= <<
     20 $if(deltas)$
     21 $if(!deltas.empty)$
     22 $desc$
     23 <ul>
     24 $deltas:{<li>$DeltaTypeSwitch(delta=it)$</li>}$
     25 </ul>
     26 $endif$
     27 $endif$ 
     28 >>
     29 
     30 
     31 SigAnnotationDelta(delta) ::= <<
     32 $MultiSubDelta(desc="Annotation Elements changed:", deltas=delta.annotationElementDeltas)$
     33 >>
     34 
     35 
     36 
     37 SigAnnotationElementDelta(delta) ::= <<
     38 $SingleSubDelta(desc="Value changed:", delta=delta.valueDelta)$
     39 >>
     40 
     41 
     42 SigArrayTypeDelta(delta) ::= <<
     43 $SingleSubDelta(desc="Component Type of array changed:", delta=delta.componentTypeDelta)$
     44 >>
     45 
     46 
     47 SigClassReferenceDelta(delta) ::= "from $SigClass(element=delta.from)$ to $SigClass(element=delta.to)$"
     48 
     49 
     50 SigConstructorDelta(delta) ::= "$SigExecutableMemberDelta(delta=delta)$"
     51 
     52 SigMethodDelta(delta) ::= <<
     53 $SigExecutableMemberDelta(delta=delta)$
     54 $if(delta.returnTypeDelta)$
     55 $SingleSubDelta(desc="Return Type changed:", delta=delta.returnTypeDelta)$
     56 $endif$
     57 >>
     58 
     59 
     60 SigExecutableMemberDelta(delta) ::= <<
     61 $if(delta.annotationDeltas)$
     62 $MultiSubDelta(desc="Annotations changed:", deltas=delta.annotationDeltas)$
     63 $endif$
     64 
     65 $if(delta.modifierDeltas)$
     66 $MultiSubDelta(desc="Modifiers changed:", deltas=delta.modifierDeltas)$
     67 $endif$
     68 
     69 $if(delta.typeVariableDeltas)$
     70 $MultiSubDelta(desc="Type Variables changed:", deltas=delta.typeVariableDeltas)$
     71 $endif$
     72 
     73 $if(delta.exceptionDeltas)$
     74 $MultiSubDelta(desc="Exceptions changed:", deltas=delta.exceptionDeltas)$
     75 $endif$
     76 
     77 $if(delta.parameterDeltas)$
     78 $MultiSubDelta(desc="Parameters changed:", deltas=delta.parameterDeltas)$
     79 $endif$
     80 >>
     81 
     82 SigFieldDelta(delta) ::= <<
     83 $SingleSubDelta(desc="Type changed:", delta=delta.typeDelta)$
     84 $MultiSubDelta(desc="Modifiers changed:", deltas=delta.modifierDeltas)$
     85 $MultiSubDelta(desc="Annotations changed:", deltas=delta.annotationDeltas)$
     86 >>
     87 
     88 SigGenericDelclarationDelta(delta) ::= "GenericDelclarationDelta $delta$"
     89 
     90 SigModifierDelta(delta) ::= "SigModifierDelta.st: Please file a bug if you see this message"
     91 
     92 
     93 SigParameterDelta(delta) ::= <<
     94 $if(delta.annotationDeltas)$
     95 $MultiSubDelta(desc="Annotations changed:", deltas=delta.annotationDeltas)$
     96 $endif$
     97 
     98 $if(delta.typeDelta)$
     99 $SingleSubDelta(desc="Type changed:", delta=delta.typeDelta)$
    100 $endif$
    101 >>
    102 
    103 
    104 SigParameterizedTypeDelta(delta) ::= <<
    105 $SingleSubDelta(desc="Owner Type changed:", delta=delta.ownerTypeDelta)$
    106 $SingleSubDelta(desc="Raw Type changed:", delta=delta.rawTypeDelta)$
    107 $MultiSubDelta(desc="Type Arguments changed:", deltas=delta.argumentTypeDeltas)$
    108 >>
    109 
    110 
    111 SigPrimitiveTypeDelta(delta) ::= "from $delta.from$ to $delta.to$"
    112 
    113 SigTypeDelta(delta) ::= "from $ElementType(element=delta.from)$ to $ElementType(element=delta.to)$"
    114 
    115 SigTypeVariableReferenceDelta(delta) ::= <<
    116 SigTypeVariableReferenceDelta:
    117 $delta$
    118 >>
    119 
    120 SigTypeVariableDefinitionDelta(delta) ::= <<
    121 $SingleSubDelta(desc="Upper Bound changed:", delta=delta.upperBoundsDelta)$
    122 $SingleSubDelta(desc="Declaration changed:", delta=delta.genericDeclarationDelta)$
    123 >>
    124 
    125 SigUpperBoundsDelta(delta) ::= <<
    126 $SingleSubDelta(desc="First Upper Bound changed:", delta=delta.firstUpperBoundDelta)$
    127 $MultiSubDelta(desc="Upper Bounds changed:", deltas=delta.remainingUpperBoundDeltas)$
    128 >>
    129 
    130 SigWildcardTypeDelta(delta) ::= <<
    131 $SingleSubDelta(desc="Lower Bound changed:", delta=delta.lowerBoundDelta)$
    132 $SingleSubDelta(desc="Upper Bounds changed:", delta=delta.upperBoundDelta)$
    133 >>
    134 
    135 SigAnnotationFieldDelta(delta) ::= <<
    136 $SigFieldDelta(delta = delta)$
    137 $SingleSubDelta(desc="Default value changed:", delta=delta.defaultValueDelta)$
    138 >>
    139 
    140 SingleSubDelta(desc, delta) ::= <<
    141 $if(delta)$
    142 $desc$
    143 <ul>
    144   <li>$DeltaTypeSwitch(delta=delta)$</li>
    145 </ul>
    146 $endif$
    147 >>
    148 
    149 
    150