public class TacletPrefix
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
context
used by rewrite taclets to mark the context
|
private ImmutableSet<SchemaVariable> |
prefix
the prefix of the taclet
|
Constructor and Description |
---|
TacletPrefix(ImmutableSet<SchemaVariable> prefix,
boolean context)
creates the prefix
|
Modifier and Type | Method and Description |
---|---|
boolean |
context()
returns the context marker
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.Iterator<SchemaVariable> |
iterator() |
ImmutableSet<SchemaVariable> |
prefix()
returns the prefix
|
TacletPrefix |
put(SchemaVariable var)
creates a new TacletPrefix with a new prefix entry
|
TacletPrefix |
remove(SchemaVariable var)
removes a SchemaVariable from the prefix
|
TacletPrefix |
setContext(boolean setTo)
returns a new TacletPrefix with the context flag set to the given
boolean value
|
java.lang.String |
toString() |
private ImmutableSet<SchemaVariable> prefix
private boolean context
public TacletPrefix(ImmutableSet<SchemaVariable> prefix, boolean context)
prefix
- the SetOfcontext
- a boolean markerpublic ImmutableSet<SchemaVariable> prefix()
public java.util.Iterator<SchemaVariable> iterator()
public boolean context()
public TacletPrefix setContext(boolean setTo)
setTo
- the boolean to which the TacletPrefix is set topublic TacletPrefix put(SchemaVariable var)
var
- the SchemaVariable to be addedpublic TacletPrefix remove(SchemaVariable var)
var
- the SchemaVariable to be removedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object