parseractionbase.java

来自「JAVA 所有包」· Java 代码 · 共 74 行

JAVA
74
字号
/* * @(#)ParserActionBase.java	1.9 05/11/17 *  * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.orb ;import java.util.Properties ;import com.sun.corba.se.spi.orb.Operation ;public abstract class ParserActionBase implements ParserAction {    private String propertyName ;    private boolean prefix ;    private Operation operation ;    private String fieldName ;    public int hashCode()    {	return propertyName.hashCode() ^ operation.hashCode() ^	    fieldName.hashCode() ^ (prefix ? 0 : 1) ;    }    public boolean equals( Object obj )    {	if (obj == this)	    return true ;	if (!(obj instanceof ParserActionBase))	    return false ;	ParserActionBase other = (ParserActionBase)obj ;	return propertyName.equals( other.propertyName ) &&	    prefix == other.prefix &&	    operation.equals( other.operation ) &&	    fieldName.equals( other.fieldName ) ;    }    public ParserActionBase( String propertyName, boolean prefix, 	Operation operation, String fieldName )    {	this.propertyName	= propertyName ;	this.prefix		= prefix ;	this.operation		= operation ;	this.fieldName		= fieldName ;    }    public String getPropertyName()     {	return propertyName ;    }    public boolean isPrefix()     {	return prefix ;    }    public String getFieldName()     {	return fieldName ;    }    public abstract Object apply( Properties props ) ;    protected Operation getOperation()    {	return operation ;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?