| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| public String | |
| public int | |
| public int | hashCode()
Overrides org. |
| public TypePattern | parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w)
Overrides org. |
| public static TypePattern | |
| public TypePattern | remapAdviceFormals(IntMap bindings)
Overrides org. |
| public String | toString()
Overrides org. |
| public void |
| bindingName | back to summary |
|---|---|
| private String bindingName | |
| formalIndex | back to summary |
|---|---|
| private int formalIndex | |
| BindingTypePattern | back to summary |
|---|---|
| public BindingTypePattern(UnresolvedType type, int index, boolean isVarArgs) | |
| BindingTypePattern | back to summary |
|---|---|
| public BindingTypePattern(FormalBinding binding, boolean isVarArgs) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getBindingName | back to summary |
|---|---|
| public String getBindingName() | |
| getFormalIndex | back to summary |
|---|---|
| public int getFormalIndex() Implements org. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parameterizeWith | back to summary |
|---|---|
| public TypePattern parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w) Overrides org. Doc from org. return a version of this type pattern with all type variables references replaced by the corresponding entry in the map. | |
| read | back to summary |
|---|---|
| public static TypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException | |
| remapAdviceFormals | back to summary |
|---|---|
| public TypePattern remapAdviceFormals(IntMap bindings) Overrides org. Doc from org. This is called during concretization of pointcuts, it is used by BindingTypePattern to return a new BindingTypePattern with a formal index appropriate for the advice, rather than for the lexical declaration, i.e. this handles transformations through named pointcuts.
pointcut foo(String name): args(name);
--> This makes a BindingTypePattern(0) pointing to the 0th formal
before(Foo f, String n): this(f) && foo(n) { ... }
--> when resolveReferences is called on the args from the above, it
will return a BindingTypePattern(1)
before(Foo f): this(f) && foo(*) { ... }
--> when resolveReferences is called on the args from the above, it
will return an ExactTypePattern(String)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |
| write | back to summary |
|---|---|
| public void write(CompressingDataOutputStream out) throws IOException Overrides org. | |