Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.xerces.impl.dtd.models;
 
 public class CMAny extends CMNode
 {
   private int fType;
   private String fURI;
   private int fPosition = -1;
 
   public CMAny(int paramInt1String paramStringint paramInt2)
  {
    super(paramInt1);
    this.fType = paramInt1;
    this.fURI = paramString;
    this.fPosition = paramInt2;
  }
  final int getType()
  {
    return this.fType;
  }
  final String getURI()
  {
    return this.fURI;
  }
  final int getPosition()
  {
    return this.fPosition;
  }
  final void setPosition(int paramInt)
  {
    this.fPosition = paramInt;
  }
  public boolean isNullable()
  {
    return this.fPosition == -1;
  }
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append('(');
    localStringBuffer.append("##any:uri=");
    localStringBuffer.append(this.fURI);
    localStringBuffer.append(')');
    if (this.fPosition >= 0)
      localStringBuffer.append(" (Pos:").append(Integer.toString(this.fPosition)).append(')');
    return localStringBuffer.toString();
  }
  protected void calcFirstPos(CMStateSet paramCMStateSet)
  {
    if (this.fPosition == -1)
      paramCMStateSet.zeroBits();
    else
      paramCMStateSet.setBit(this.fPosition);
  }
  protected void calcLastPos(CMStateSet paramCMStateSet)
  {
    if (this.fPosition == -1)
      paramCMStateSet.zeroBits();
    else
      paramCMStateSet.setBit(this.fPosition);
  }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.xerces.impl.dtd.models.CMAny
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X