Package Torello.JavaDoc.SyntaxHiLite
Class AbstractHiLiter
- java.lang.Object
-
- Torello.JavaDoc.SyntaxHiLite.AbstractHiLiter
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
HiLiteHTML
public class AbstractHiLiter extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/JavaDoc/SyntaxHiLite/AbstractHiLiter.java
- Open New Browser-Tab: Torello/JavaDoc/SyntaxHiLite/AbstractHiLiter.java
File Size: 3,818 Bytes Line Count: 109 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
HiLiter Settings: Opening & Closing Tags, (Stored in Arrays) Modifier and Type Field protected TagNode[]
closers
protected TagNode[]
openers
HiLiter Settings: Use or Ignore? On-or-Off Booleans (Stored in an Array) Modifier and Type Field protected boolean[]
utilize
Array Lengths Modifier and Type Field protected int
CONFIG_ARR_LEN
-
Constructor Summary
Constructors Modifier Constructor protected
AbstractHiLiter(TagNode[] openers, TagNode[] closers, boolean[] utilize)
-
Method Summary
Getters: Required because the Configuration-Arrays are Protected & Non-Accessible Modifier and Type Method TagNode
getClosingTag(byte whichOne)
TagNode
getOpeningTag(byte whichOne)
boolean
getUtilized(byte whichOne)
Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
int
hashCode()
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
protected static final long serialVersionUID = 1;
-
openers
-
closers
-
utilize
protected final boolean[] utilize
- Code:
- Exact Field Declaration Expression:
protected final boolean[] utilize;
-
CONFIG_ARR_LEN
protected final int CONFIG_ARR_LEN
- Code:
- Exact Field Declaration Expression:
protected final int CONFIG_ARR_LEN;
-
-
Constructor Detail
-
AbstractHiLiter
protected AbstractHiLiter(TagNode[] openers, TagNode[] closers, boolean[] utilize)
-
-
Method Detail
-
getOpeningTag
public TagNode getOpeningTag(byte whichOne)
- Code:
- Exact Method Body:
checkWhichOne(whichOne); return openers[whichOne];
-
getClosingTag
public TagNode getClosingTag(byte whichOne)
- Code:
- Exact Method Body:
checkWhichOne(whichOne); return closers[whichOne];
-
getUtilized
public boolean getUtilized(byte whichOne)
- Code:
- Exact Method Body:
checkWhichOne(whichOne); return utilize[whichOne];
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (! (other instanceof AbstractHiLiter)) return false; AbstractHiLiter o = (AbstractHiLiter) other; return Arrays.equals(this.openers, o.openers) && Arrays.equals(this.closers, o.closers) && Arrays.equals(this.utilize, o.utilize);
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Arrays.hashCode(this.openers);
-
-