trait AttributionCommon extends AnyRef
Common support for attribution of syntax trees in a functional style. Includes circular and constant attributes but needs to be augmented with basic attributes and parameterised attributes.
- Source
- AttributionCommon.scala
- Alphabetic
- By Inheritance
- AttributionCommon
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
ConstantAttribute
[T, U] extends Attribute[T, U]
A constant attribute of a node type
Twith value of typeU.A constant attribute of a node type
Twith value of typeU. The value is given by the computationuwhich is evaluated at most once.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
constant[T, U](name: String, u: ⇒ U): Attribute[T, U]
As for the other
constantwith the first argument specifying a name for the constructed attribute. -
macro
def
constant[T, U](u: ⇒ U): Attribute[T, U]
Define a constant attribute of
Tnodes of typeUgiven by the valueu.Define a constant attribute of
Tnodes of typeUgiven by the valueu.uis evaluated at most once. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
initTree[T <: Attributable](t: T): Unit
Initialise the
Attributabletree rooted attso that it is ready for attribution.Initialise the
Attributabletree rooted attso that it is ready for attribution. At present, the only initialisation performed is to set node attributes such as parent and children so that nodes can generically refer to their neighbours. If you wish to use any of these properties, you must call this method before doing so. Otherwise, the node properties should not be used and there is no need to call this method. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )